Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~9K People Reached
Favorite Forums
Favorite Tags
c x 8
Member Avatar for stage

Hello, im new to C and I'm stuck with a program. I now use this code to change some numbers [CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> #define relays 8 int main(int argc, char *argv[]){ int relay = 0; if (strtol(argv[argc-1], NULL, 10)) { if (strlen(argv[argc-1]) <= relays) { int a; …

Member Avatar for stage
0
94
Member Avatar for stage

Hellow I'm just started whit C. I'm usig gcc and get this error: [CODE]test.c: In function 'main': test.c:8: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast ..... [/CODE] This is my code: [CODE]#include <stdio.h> #include <string.h> int main(int argc, char *argv[]){ int arg = atoi(argv[argc-1]); …

Member Avatar for stage
0
9K