Re: Why does my program change the characters in my shell

From: Anand Agrawal \(agrawala\) (agrawala_at_cisco.com)
Date: 06/26/03


Date: Thu, 26 Jun 2003 10:12:08 +0530

Hi Andy,
  I hope you must be ending each string with NULL characters otherwise
you will face this problem.
  It will be better if you just give part of the code and output.

Anand
"Andrew Falanga" <excalibur@icehouse.net> wrote in message
news:3EFA632F.2FC168CD@icehouse.net...
> Hello,
>
> I'd like to know what the typical reason for this is. I'm debugging a
> program I've written, and to make sure I'm using sscanf( ) and strcpy(
> ). However, when it gets done puting the data on stdout, the program is
> supposed to prompt me for action.
>
> What is displayed is really weird text. No English alphabetic
> characters, just right angled shapes and stuff. What normally alters
> the character set of stdout (don't know if I worded that correctly)?
>
> Andy
>
>
>
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----== Over 80,000 Newsgroups - 16 Different Servers! =-----



Relevant Pages

  • Re: Finding Characters only in string of lines
    ... >>I current have a batch script that executes a shell command which stdout ... >>the Windows shell a string of characters. ...
    (microsoft.public.windows.server.scripting)
  • Finding Characters only in string of lines
    ... I current have a batch script that executes a shell command which stdout to ... I capture the string of characters into a variable then write it into a text ...
    (microsoft.public.windows.server.scripting)
  • Re: showmatch script from Unix Power Tools gives error
    ... When run it is supposed to highlight the match on stdout with carets ... The awk program works by first setting "s" to be the characters before ... The reason for keeping certain characters in the "s" string is to ...
    (comp.unix.shell)
  • Re: Is this code valid
    ... >> The only missing bit is a newline to stdout before returning from main. ... | A text stream is an ordered sequence of characters composed into ... | terminating new-line character is implementation-defined. ... There is no doubt that the stdout stream is closed (and therefore ...
    (comp.lang.c)
  • Re: Binary mode for stdout?
    ... I have a bunch of data, some of which might be text, which I might want to output, sometime, to a file or maybe to stdout, but I don't know which. ... Files will always be in binary mode. ... The question was is there any way of turning stdout into a binary stream so that it doesn't mess with my data? ... substitutions of characters that takes place along the way to ...
    (comp.lang.c)