library/comms.c
int write_sv(int fd, char *const svec[])
{
  int index, size;

  for (index=0, size=0; svec[index]; index++, size++)
    size += strlen(svec[index]);
  write_int(fd, index);
  write_int(fd, size);
  for (index=0; svec[index]; index++)
    writen(fd, svec[index], strlen(svec[index])+1);
  return 0;
}
// Write NULL-terminated string vector to file descriptor
Write NULL-terminated string vector to file descriptor
Write NULL - terminated string vector to file descriptor
int write_sv(int fd, char *const svec[])
{
  int index, size;
  for (index=0, size=0; svec[index]; index++, size++)
    size += strlen(svec[index]);
  write_int(fd, index);
  write_int(fd, size);
  for (index=0; svec[index]; index++)
    writen(fd, svec[index], strlen(svec[index])+1);
  return 0;
}
int write_sv ( int fd , char * const svec [ ] ) { int index , size ; for ( index = 0 , size = 0 ; svec [ index ] ; index ++ , size ++ ) size += strlen ( svec [ index ] ) ; write_int ( fd , index ) ; write_int ( fd , size ) ; for ( index = 0 ; svec [ index ] ; index ++ ) writen ( fd , svec [ index ] , strlen ( svec [ index ] ) + 1 ) ; return 0 ; }
Write NULL-terminated string vector to file descriptor
Write NULL - terminated string vector to file descriptor