Search:

Type: Posts; User: Donald Salguero

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,234

    thank you very much Adak, it worked as it should.

    thank you very much Adak, it worked as it should.
  2. Replies
    10
    Views
    1,234

    The only variable that causes me problems is the...

    The only variable that causes me problems is the minute int. The hours are as they should be, and i can do the proper operations with them.

    If i had to guess is that after scanning the hours and...
  3. Replies
    10
    Views
    1,234

    i tried using sscanf(pt, "%*s %d %s %d %d...

    i tried using
    sscanf(pt, "%*s %d %s %d %d %*[^:]c %d", d, month, y, h, min);
    sscanf(pt, "%*s %d %s %d %d %[^:]c %d", d, month, y, h, min);

    but the minute int always ended up as 0 even though the...
  4. Replies
    10
    Views
    1,234

    the complete string that i scan has the following...

    the complete string that i scan has the following format:
    "Date: dd month yyyy hh:mm:ss"

    the time is formatted as

    hh:mm:ss

    i want the hour int (*h) to be hh, and the minute int (*m) to be...
  5. Replies
    10
    Views
    1,234

    Scaninng from string

    i have the following function



    void fixdate(char *pt, int* d, int* m, int* y, int* h, int* min, int* pa)
    {
    char month[3];

    sscanf(pt, "%*s %d %s %d %d %d", d, month, y, h, min);
Results 1 to 5 of 5