home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12356 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.1 KB  |  27 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!uunet.ca!canrem!telly!druid!darcy
  3. From: darcy@druid.uucp (D'Arcy J.M. Cain)
  4. Subject: Re: Allocate memory to typed in string, How?
  5. Message-ID: <1992Aug14.194448.10225@druid.uucp>
  6. Date: Fri, 14 Aug 1992 19:44:48 GMT
  7. References: <MJN.92Aug9012538@pseudo.uucp> <1992Aug13.184911.376@wyvern.twuug.com>
  8. Organization: D'Arcy Cain Consulting
  9. Lines: 16
  10.  
  11. alpha@wyvern.twuug.com (Joe Wright) writes:
  12. >Attempts to allocate memory, char at a time, to an arbitrary 'string'
  13. >is silly even if it is possible.  If a string is assumed to be a line
  14. >of a text file or arbitrary keyboard input, we can easily declare that
  15. >it must not be longer than (let's say) 256 bytes.  Given that screens
  16.  
  17. Obviously you don't have a cat "helping" you do your input.  :-)  This
  18. also applies to leaving a book pressing against a key.  Even if only a
  19. single character is allowed, accidents do happen and the system should
  20. be able to cope.
  21.  
  22. -- 
  23. D'Arcy J.M. Cain (darcy@druid.com)  |
  24. D'Arcy Cain Consulting              |   There's no government
  25. Toronto, Ontario, Canada            |   like no government!
  26. +1 416 424 2871          DoD#0082   |
  27.