int main(int argc, char *argv[])
{
printf("Temp is");
msgrcv(externalQid, &incomingMsg, sizeof(incomingMsg)-sizeof(long), 0, 0);
}
printf never actually prints in this case…it does however get printed if I don’t have the msgrv call.. It is making it very hard to debug my program. Any ideas?
Try putting a newline character at the end of your printf. I’m not intimately familiar with the ‘why’, but it solved a similar problem I had a while ago.