#include
char option[64],line[256];
main()
{
printf(">>")
(fgets(line, sizeof(line), stdin)) {
if (1 == sscanf(line, "%s", option)) {
}
}
print(option)
}
will only get the first word, for example
/>>hello world
would output
/>>hello