🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2789

stringizing

#2789
From: Daniel Edelson
Date: Tue, 23 Apr 1991 05:10
16 lines
732 bytes
Given the following program:

	#include <stdio.h>
	#define  str(x) #x
	int main(void)
	{
		printf("%s\n", str(  hello\t\n\vworld\n\n));
		return 0;
	}

Is the output from this program supposed to be:

	hello world

Thanks,
Daniel Edelson
Technical Details
Message-ID: <14888@darkstar.ucsc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!bionet!agate!darkstar!terra.ucsc.edu!daniel

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ucselx!bionet!agate!darkstar!terra.ucsc.edu!daniel
From: daniel@terra.ucsc.edu (Daniel Edelson)
Newsgroups: comp.std.c
Subject: stringizing
Message-ID: <14888@darkstar.ucsc.edu>
Date: 23 Apr 91 05:10:27 GMT
Sender: usenet@darkstar.ucsc.edu
Reply-To: daniel@terra.ucsc.edu (Daniel Edelson)
Organization: University of California, Santa Cruz
Lines: 16