From: utzoo!decvax!cca!wan.gatech@Udel-Relay@sri-unix Newsgroups: net.unix-wizards Title: Re: cpp quoting tricks?? Article-I.D.: sri-unix.4031 Posted: Mon Oct 25 01:42:15 1982 Received: Wed Oct 27 06:39:20 1982 From: Peter N Wan Date: 21 Oct 82 12:10:32-EDT (Thu) Greg, How about using 'sprintf' to build your string? For instance, you can do : # define TAPE 1 . . char dev_template[] = "/dev/mt%-02d"; char device_name[128]; int dev_number; . . dev_number = TAPE; sprintf (device_name, dev_template, dev_number); 'device_name' should contain the device name, e.g. "/dev/mt1". Forgive me if there are a few things wrong in the above example; but I think that you get the idea. It uses up more storage and requires a little run-time time, but it does give you the flexibility that I think that you were looking for. Peter Wan Georgia Tech