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