I think the solution from JMS is probably the best
Also, call me crazy, but I recall when initializing arrays, you need to use the initializer listCode:char buff[128]; memset( buff, 'A', sizeof( buff ) -1 ); buff[ sizeof(buff)-1 ] = '\0';
So I don't think either of these are correct for initializing an arrayCode:char buff[128] = {'\0'};
Code:char buff[128] = 0; OR char buff[128] = '\0'




Reply With Quote