Search:

Type: Posts; User: stahta01

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    938

    Read and learn; if you do not understand ask...

    Read and learn; if you do not understand ask smart questions.
    realloc - C++ Reference
  2. Replies
    4
    Views
    938

    test = realloc (test, sizeof(char)); You...

    test = realloc (test, sizeof(char));

    You allocate ONLY a single char then you over-write your program stack; you are lucky your program ran without crashing.

    I suggest re-reading the docs...
Results 1 to 2 of 2