Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C

Compiler

clang 7.0.0

Options
Warnings
Optimization
C11(GNU)
-pedantic

Author

anonymous

over 6 years ago

$ clang prog.c -Wall -Wextra -O2 -march=native -std=gnu11 -pedantic
prog.c:4:21: warning: implicitly declaring library function 'strtol' with type 'long (const char *, char **, int)' [-Wimplicit-function-declaration]
    printf("%ld\n", strtol("99999999999999999999999"));
                    ^
prog.c:4:21: note: include the header <stdlib.h> or explicitly provide a declaration for 'strtol'
prog.c:4:53: error: too few arguments to function call, expected 3, have 1
    printf("%ld\n", strtol("99999999999999999999999"));
                    ~~~~~~                          ^
1 warning and 1 error generated.
Exit Code:
1