Search:

Type: Posts; User: stahta01

Search: Search took 0.04 seconds.

  1. Replies
    4
    Views
    1,207

    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
    1,207

    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