well well, i'm off to bed :)
thanks quzah!
Type: Posts; User: MoonSire
well well, i'm off to bed :)
thanks quzah!
I tried using this one:
#include <stdio.h>
..
int main(void)
{
const char line[] = "2004/12/03 12:01:59;info1;info2;info3";
const char *ptr = line;
char field [ 32 ];
int n;
Thanks guys!
I completely overlooked›sscanf so my solution was extracting each char from the buffer and inserting it into the struct with an array of pointers to each variable in the struct :)
Hi.
I am trying to extract a series of strings that are put together in a buffer like this:
David_Smith__monkey___555-1435__555-1323__test.com_
one _ equals one VTAB.
The strings should...