Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Implementing strstr
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Josh Holland, post: 4053377"] I really shouldn't reply, but I just have to. Firstly, saying "C should reject all-caps" is irrelevant, as there is no reference implementation for C, as there is for C# or Python (say). For that matter, the closest thing to a reference implementation on Un*x platforms, gcc, does reject all caps. $ cat caps.c #include <STDIO.H> int main(int argc, char *argv[]) { printf("Hello world!\n"); return 0; } $ gcc -Wall -Wextra -ansi -pedantic caps.c caps.c:1:19: error: STDIO.H: No such file or directory cc1: warnings being treated as errors caps.c: In function ‘main’: caps.c:5: error: implicit declaration of function ‘printf’ caps.c:5: error: incompatible implicit declaration of built-in function ‘printf’ caps.c:3: error: unused parameter ‘argc’ caps.c:3: error: unused parameter ‘argv’ $ [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Implementing strstr
Top