Search:

Type: Posts; User: march5th

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,831

    Memory Leaks

    Mallocing space continually would eventually make your system run out of memory.
    Since every time you malloc you request the operating system for some more memory. And if you do not free it, then...
  2. Replies
    4
    Views
    1,083

    Strange :) thanks, ill look into it

    Strange :) thanks, ill look into it
  3. Replies
    4
    Views
    1,083

    Thanks for your reply, I realised that I was not...

    Thanks for your reply, I realised that I was not specific about the problem that I am having.
    I can read the start string (one) but I am not able to read 3409.0533 instead of that it gives me the...
  4. Replies
    4
    Views
    1,083

    Problem with sscanf

    Hi,

    I am having a problem with using sscanf on the following string:
    $one,184943.000,3409.0533,N,11817.0188,W

    this is my sscanf function:
    sscanf(line,"%4c,%lf,%f,N,%f,W",t1,&t2,&t3,&t4);
    ...
  5. Replies
    13
    Views
    6,921

    Sorry guys, my code is too large and scattered to...

    Sorry guys, my code is too large and scattered to post, I am sure it has to do with the regex,
    the ^[0-9]+$ didnt solve it either. I really am thinking its greedy and tries to match as much
    as it...
  6. Replies
    13
    Views
    6,921

    Would this have anything to do because of posix...

    Would this have anything to do because of posix regex are greedy?
  7. Replies
    13
    Views
    6,921

    I am now having problem that it doesnt match any...

    I am now having problem that it doesnt match any of the integer values.
    Just to check is this right:
    regex expression:
    "\b[+-]?[0-9]+\b";

    Strings:
    100
    0
    49
  8. Replies
    13
    Views
    6,921

    Sorry I actually meant a integer but I am not...

    Sorry I actually meant a integer but I am not sure how you would use this?
    If I have [+-]?[0-9]+ where do I put the \b \b? I checked it is \b thanks for that.
  9. Replies
    13
    Views
    6,921

    Posix Regex in C

    Hi, Does anyone know a flag so that regexec can search a string and match
    a regex exactly once?
    I have a string for example 123456 and a regular expression of
    [0-9]+ but this also matches...
  10. Replies
    6
    Views
    739

    Thank you very much for the info, ill try it and...

    Thank you very much for the info, ill try it and see.
  11. Replies
    6
    Views
    739

    yea but what would the pointer arithetic be?...

    yea but what would the pointer arithetic be? thats actually my question :)
  12. Replies
    6
    Views
    739

    Structure Question

    I wanted to ask, if I had a struct which looked like this:



    typedef struct types
    {
    char *data1;
    int *data2;
    int data3
    }type;
Results 1 to 12 of 12