nah, i just want "add" stored into a string called commands, and then the rest of the line stored into my list.
add hello my name is fred.
scans in add
and then "hello my name is fred" is first...
Type: Posts; User: jspri
nah, i just want "add" stored into a string called commands, and then the rest of the line stored into my list.
add hello my name is fred.
scans in add
and then "hello my name is fred" is first...
thanks, i fixed up the case statement and turned it into if statements.
My problem is i'm not sure how use the string in the structure called control.
i scan in add and it goes to the add...
hi, my desired output is something like this
eros>>./robot
>>>> >oops
error: invalid command (oops)
list is empty
>>>> >add 100 100 get 5 bolts
>>>> ...
thanks guys
Hi, my program compiles but when i run it, i get segmentation fault ? can anybody help > thanks in advance.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
{