🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4801

Re: "c" question.

#4801
From: Mark Kintigh
Date: Wed, 14 Feb 1996 23:07
21 lines
1414 bytes
William Donald Peterson III wrote:
> 
> I have a question.  I was wondering if anybody knows how to display a
> character that is not on the keyboard, but is in the alphabet.  For
> example, if I wanted to "printf" the 129th ascii character.

C treats int and char the same.  If you want to load int x with 'A' just
type "x='A';".  For your printf example you can do this a number of ways
	ie: printf("..%c..",129);
	    printf("...\201..");    /* octal value of 129 */
            :

-- 
     _____
    /    /##                 breetai@oak.westol.com
   /    /####                                                     ____
  (| []/ o ##)    "We met the enemy, and they were'nt us, then   | _|||
|\ \_/ /\   # /|  we faced a pannel of 'us' and found they were  ||  ||
| \-\ ==== /-/ |                    the enemy."                   \\//
||\\ '----' //||                                                   \/
|| \\/    \// ||
Technical Details
Message-ID: <31226B26.3E22@oak.westol.com>
Path: arc1-ca.pugleaf.net!hickory.westol.com!news
References: <312048DF.4E51@vast.cs.byu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!hickory.westol.com!news
From: Mark Kintigh <breetai@oak.westol.com>
Newsgroups: comp.std.c
Subject: Re: "c" question.
Date: Wed, 14 Feb 1996 15:07:18 -0800
Organization: Westmoreland Online Inc.
Message-ID: <31226B26.3E22@oak.westol.com>
References: <312048DF.4E51@vast.cs.byu.edu>
NNTP-Posting-Host: pm127.westol.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 2.0b6b (Win16; I)