forked from KolibriOS/kolibrios
- Move source code from `trunk` into root directory. - Update build files and ASM include paths. Add SPDX license header where appropriate. - These changes also update the CI build files in `.gitea/workflows/`. - Note: Line endings standardised from `CRLF` > `LF`, so best to view diffs with whitespace changes hidden. (Work towards [#75](KolibriOS/kolibrios#75), point 3) --------- Co-authored-by: Burer <burer@kolibrios.org> Reviewed-on: KolibriOS/kolibrios#425 Reviewed-by: Mikhail Frolov <mixa.frolov2003@gmail.com> Reviewed-by: Burer <burer@kolibrios.org> Co-authored-by: Andrew <dent.ace@gmail.com> Co-committed-by: Andrew <dent.ace@gmail.com>
21 lines
523 B
C
21 lines
523 B
C
#include <limits.h>
|
|
#include <stdio.h>
|
|
#include <sys/ksys.h>
|
|
|
|
char* test_string1 = "Hello world!";
|
|
int a, b;
|
|
|
|
int main(int argc, char** argv)
|
|
{
|
|
sscanf("43 53", "%d %d", &a, &b);
|
|
printf("(43 53) = (%d %d)\n", a, b);
|
|
printf("Hello world! = %s\n", test_string1);
|
|
printf("345.358980 = %f\n", 345.35898);
|
|
printf("345 = %d\n", (int)345.35898);
|
|
printf("ff = %x\n", 255);
|
|
printf("-1 = %d\n", UINT_MAX);
|
|
printf("5A-4B-N$ = %s%c-%u%c-N%c\n", "5", 'A', 4, 'B', '$');
|
|
puts("Done!");
|
|
return 0;
|
|
}
|