#include int l3_write( char *b, int n); int l3_read( char *b, int n); int l4_write_string(char *s) { return(l3_write(s,strlen(s))); } int l4_read_string(char *s, int max) { int res; res=l3_read(s,max); if (res<0) return(-1); s[res]=0; if (s[res]!=0) { return(-1); } return(res); } int l4_write_estring(char *s) { int i; char buf[1000]; if (strlen(s)>998) { return(-1); } for (i=0;imax) return(-1); buf[len]=0; if (buf[len]!=0) return(-1); for (i=0;i