Search:

Type: Posts; User: MoonSire

Search: Search took 0.00 seconds.

  1. Replies
    11
    Views
    2,700

    well well, i'm off to bed :) thanks quzah!

    well well, i'm off to bed :)

    thanks quzah!
  2. Replies
    11
    Views
    2,700

    I tried using this one: #include .....

    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;
  3. Replies
    11
    Views
    2,700

    Thanks guys! I completely overlooked›sscanf so...

    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 :)
  4. Replies
    11
    Views
    2,700

    Extracting strings from a buffer

    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...
Results 1 to 4 of 4