#include <stdio.h> #include <stdlib.h> #include <string.h> const size_t BUFFER_LEN =128; const size_t NUM_P =3; char buffer[128]; char *pS[3]={NULL}; char *pbuffer =buffer ; int i; int main() { printf(" You can enter up to %u message each up to %u ge ",NUM_P,BUFFER_LEN-1); for (i=0;i<NUM_P;i++) { pbuffer=buffer ; printf(" Enter %s message ",i>0?"another":"a"); while ((pbuffer-buffer<BUFFER_LEN-1)&&(*(pbuffer++)=getchar())!=' '); if((pbuffer-buffer)<2) break; if((pbuffer-buffer)==BUFFER_LEN&&*(pbuffer-1)!=' ') { printf("String too long "); i--; continue; } *(pbuffer-1)='