home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!destroyer!sol.ctr.columbia.edu!usc!cs.utexas.edu!not-for-mail
- From: wilson%inf.UFRGS.BR@UICVM.UIC.EDU (Wilson Roberto Afonso)
- Newsgroups: comp.lang.c
- Subject: Re: Problem with string processing.
- Date: 7 Jan 1993 13:05:58 -0600
- Organization: UTexas Mail-to-News Gateway
- Lines: 32
- Sender: daemon@cs.utexas.edu
- Message-ID: <9301071842.AA11818@urutu.inf.ufrgs.br>
- NNTP-Posting-Host: cs.utexas.edu
-
-
- >>Assuming a large enough string for the append, and low-high byte ordering,
- >>would this work?
- >>
- >>strcat(str,(char *)&ch);
- >>
- >
- >Well, it would work *sometimes*. Remember that strcat() expects two pointers
- >to ZERO-TERMINATED strings. [...]
-
- I think that the point here is "low-high byte ordering". If we have eight-bit-
- -chars, AND low-high ordering, wouldn't surely be a zero after the char ?
- I think that I am probably wrong, but that's what I thought he was talking
- about.
-
- -Wilson (wilson@inf.ufrgs.br)
- ________________________________________________________________________
- | | |_
- | Wilson Roberto Afonso | E-adresses : | |
- | Instituto de Informatica - UFRGS | | |
- | Inteligencia Artificial - Bancos de Dados | wilson@inf.ufrgs.br | |
- | Porto Alegre - RS - Brasil | wilson@vortex.ufrgs.br | |
- | "Imagination is more important than knowledge"| | |
- | Albert Einstein | | |
- |________________________________________________________________________| |
- |________________________________________________________________________|
-
-
-
-
- ----- End Included Message -----
-
-