home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / lang / c / 19373 < prev    next >
Encoding:
Internet Message Format  |  1993-01-07  |  1.7 KB

  1. Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!usc!cs.utexas.edu!not-for-mail
  2. From: wilson%inf.UFRGS.BR@UICVM.UIC.EDU (Wilson Roberto Afonso)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Problem with string processing.
  5. Date: 7 Jan 1993 13:05:58 -0600
  6. Organization: UTexas Mail-to-News Gateway
  7. Lines: 32
  8. Sender: daemon@cs.utexas.edu
  9. Message-ID: <9301071842.AA11818@urutu.inf.ufrgs.br>
  10. NNTP-Posting-Host: cs.utexas.edu
  11.  
  12.  
  13. >>Assuming a large enough string for the append, and low-high byte ordering,
  14. >>would this work?
  15. >>
  16. >>strcat(str,(char *)&ch);
  17. >>
  18. >
  19. >Well, it would work *sometimes*.  Remember that strcat() expects two pointers
  20. >to ZERO-TERMINATED strings. [...]
  21.  
  22. I think that the point here is "low-high byte ordering".  If we have eight-bit-
  23. -chars, AND low-high ordering, wouldn't surely be a zero after the char ?
  24. I think that I am probably wrong, but that's what I thought he was talking
  25. about.
  26.  
  27. -Wilson  (wilson@inf.ufrgs.br)
  28.   ________________________________________________________________________
  29.  |                                               |                        |_
  30.  | Wilson Roberto Afonso                         |     E-adresses :       | |
  31.  | Instituto de Informatica - UFRGS              |                        | |
  32.  | Inteligencia Artificial - Bancos de Dados     | wilson@inf.ufrgs.br    | |
  33.  | Porto Alegre  -  RS  -  Brasil                | wilson@vortex.ufrgs.br | |
  34.  | "Imagination is more important than knowledge"|                        | |
  35.  |                        Albert Einstein        |                        | |
  36.  |________________________________________________________________________| |
  37.    |________________________________________________________________________|
  38.  
  39.  
  40.  
  41.  
  42. ----- End Included Message -----
  43.  
  44.