home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / c / 16830 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  530 b 

  1. Path: sparky!uunet!cs.utexas.edu!rutgers!igor.rutgers.edu!ratt.rutgers.edu!map
  2. From: map@ratt.rutgers.edu (O. C.)
  3. Newsgroups: comp.lang.c
  4. Subject: write an int?
  5. Keywords: why not
  6. Message-ID: <Nov.19.19.08.57.1992.14534@ratt.rutgers.edu>
  7. Date: 20 Nov 92 00:09:03 GMT
  8. Organization: Rutgers Univ., New Brunswick, N.J.
  9. Lines: 9
  10.  
  11.  
  12. I want to write an integer to a text file using the Unix system call
  13. write,
  14.  
  15. write(file descriptor,buffer,size);
  16.  
  17. but I can only seem to get it to work for strings and characters.
  18.  
  19. What am I doing wrong?
  20.