🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4799

Re: "c" question.

#4799
From: Zefram
Date: Thu, 15 Feb 1996 21:54
16 lines
962 bytes
William Donald Peterson III  <willp@vast.cs.byu.edu> 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.

printf("%c",129);

is the most literal interpretation of your request.  In general,
character 129 can be represented as \201 in string and character
constants, so

printf("\201");

is legal.

-zefram
Technical Details
Message-ID: <1996Feb15.215436.272@dcs.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!news.dcs.warwick.ac.uk!not-for-mail
References: <312048DF.4E51@vast.cs.byu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!news.dcs.warwick.ac.uk!not-for-mail
From: A.Main@dcs.warwick.ac.uk (Zefram)
Subject: Re: "c" question.
X-Nntp-Posting-Host: stone
Message-ID: <1996Feb15.215436.272@dcs.warwick.ac.uk>
X-Stardate: [-31]7059.55
Sender: news@dcs.warwick.ac.uk (Network News)
X-Us-Congress: Moronic fuckers
Organization: Department of Computer Science, Warwick University, England
References: <312048DF.4E51@vast.cs.byu.edu>
Date: Thu, 15 Feb 1996 21:54:36 GMT