Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- char* rijec(char* string) {
- char *poc=string;
- int i=0, br=0;
- while (*string==' ' && *string!='\0') string++;
- while (*string!=' ' || *string=='\0') string++;
- if (*string!='\0') *string='\0';
- return poc;
- }
- int main () {
- char s[]="Danas je lijep dan";
- printf("%s",rijec(s));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement