Q:

Different outputs from the same C program

i have a pointer problem:
            SearchResults* pointy;

            pointy = returnResults();

            if(pointy != NULL && pointy->results[0] != NULL)
            {
                HandleResponse();
                printf("sharp");

            }else{
                //do other things
            }

            if(pointy == NULL){
                    printf("blunt");
            }
            if(pointy->results[0] == NULL){
                printf("wah!!!");
            }

in the debugger the code correctly works and i get "sharp" but under the same conditions in the bash terminal i get "wah!!!"
   typedef struct SearchResults
   {
   TreeNode* results[40];
   int searchIndex;
   } SearchResults;

   SearchResults*  lostAndFound;

 SearchResults* returnResults()
 {
  return lostAndFound;
  }

A:

Found a Problem in both the debug and release variations there is a .csv file.. the debug reads and writes to it perfectly fine whereas the release seems to steamroll it into nothigness.

