Code:
#include <stdio.h>
#include <string.h>
int main ()
{
char str[] ="ovo:je:test";
char *pok;
pok = strtok(str,":");
while(pok != NULL)
{
printf ("%s\n",pok);
pok = strtok(NULL, ":");
}
return 0;
}
#include <stdio.h>
#include <string.h>
int main ()
{
char str[] ="ovo:je:test";
char *pok;
pok = strtok(str,":");
while(pok != NULL)
{
printf ("%s\n",pok);
pok = strtok(NULL, ":");
}
return 0;
}
izace mi:
Code:
ovo
je
test
ovo
je
test
e sad meni je potrebno da npr. pokaze samo jednu rech 'ovo' ili 'je' ili 'test', a ne da mi ispishe sve...
kako ovo mogu da resim?