sscanf seems to do the trick thanks! However, why doesnt this works? I get Segmentation fault.
char *str = "this is a test";
char array[1][4];
sscanf(str, "%s %s %s %s", array[0][0],...
Type: Posts; User: neobarn
sscanf seems to do the trick thanks! However, why doesnt this works? I get Segmentation fault.
char *str = "this is a test";
char array[1][4];
sscanf(str, "%s %s %s %s", array[0][0],...
I've just made it this far:
char buffer[1024];
db = fopen("database.db", "r");
while(fgets(buffer, 1024, db) != NULL)
{
// Stuck here
Hey!
I've a text file (database.db) looking like this:
firstname1 lastname1 town1 country1 number1
firstname2 lastname2 town2 country2 number2
firstname3 lastname3 town3 country3 number3...