Dec 132017
Source files from C/C++ Users Journal January 1995 issue.
File CUJ9501.ZIP from The Programmer’s Corner in
Category Files from Magazines
Source files from C/C++ Users Journal January 1995 issue.
File Name File Size Zip Size Zip Type
ALLISON 0 0 stored
ATOX.C 572 288 deflated
ATOX2.C 515 286 deflated
ATOX3.C 182 144 deflated
ATOX4.C 156 131 deflated
COPY1.C 287 189 deflated
COPY2.C 441 251 deflated
DEAL.C 1644 739 deflated
FIND.C 816 379 deflated
READBASE.C 707 321 deflated
SEARCH.C 1337 545 deflated
SEARCHES.C 901 371 deflated
SORT.C 1323 535 deflated
VIEW.C 1724 490 deflated
ERDELSKY 0 0 stored
ENDIAN.CPP 205 115 deflated
ENDIAN.H 5838 991 deflated
FILENAME.TXT 5072 1895 deflated
KUZDRALL 0 0 stored
FLTTXF.C 6117 2055 deflated
INTTXF.C 3920 1464 deflated
LONGTXF.C 4102 1489 deflated
NRGEN.CEE 4625 1340 deflated
NRTEST.CEE 19642 5310 deflated
PLAUGER 0 0 stored
ISTRSTRM.H 360 148 deflated
OSTRSTRM.H 359 172 deflated
STRSTBUF.H 1990 478 deflated
PUGH 0 0 stored
ASPEED.C 1627 430 deflated
README.CUJ 4230 1874 deflated
THOMAS 0 0 stored
ATANH.C 688 350 deflated
NEXT.C 814 431 deflated
NEXTAFT.C 450 271 deflated
SDOT.C 620 227 deflated

Download File CUJ9501.ZIP Here

Contents of the FILENAME.TXT file

************************* MASTER CODE ***************************************

The name of the first file in this disk's directory identifies the volume,

issue number and revision of the disk. The format of this filename is:



! = the '!' character

m = C for C Users Journal, W for Windows/DOS Developer's Journal

vv = volume

ii = issue

rrr = revision (001 for initial release, 002 for next update, etc.)

The file UPDATE.DOC contains information about any additions or

corrections to material on the disk since the original magazine


If you have obtained this code from a floppy diskette or from CompuServe, the

headings under the column "FILENAME" represent the names of .ZIP files. All

files listed under the filename are archived in the .ZIP file.

If you have obtained this code from UUNET, the headings under the column

"FILENAME" represent the names of subdirectories. All files listed under the

"filename" are included in a subdirectory of that name.

Keywords: Jan95 C C++ Endian Portable Numeric strstream CD Standard

The code listings for the January 1995 issue of C/C++ Users Journal

include source code for Philip Erdelsky's portable byte ordering technique,

James A. Kuzdrall's code to transfer numeric values between dissimilar

architectures, and Jim Thomas's article on proposed floating-point extensions

to C. Also included are listings from P.J. Plauger's Standard C/C++ column,

Chuck Allison's column, Code Capsules, and Ken Pugh's column, Q&A.

************************* FILE DESCRIPTION **********************************

The following files are included in the disk:


(Zip archive/

subdirectory name)


plauger P.J. PlaugerStandard C/C++:The Header10

strstbuf.h - listing 1, The class strstreambuf

istrstrm.h - listing 2, The class istrstream

ostrstrm.h - listing 3, The class ostrstream

erdelskyPhilip J. Portable Byte Ordering in C++25


endian.h - listing 1, Defines byte ordering classes

endian.cpp - listing 2, Simple file with macro switch

kuzdrallJames A.Transferring Numeric Values33

KuzdrallBetween Computers

inttxf.c - listing 1, Integer transfer functions

longtxf.c - listing 2, Long transfer functions

flttxf.c - listing 3, Floating-point transfer functions

nrgen.cee - not listed, A program to generate a file of test


nrtest.cee - not listed, A program to read the test number file

and test the transfer routines

thomasJim Thomas andAn Introduction to Floating-49

Jerome T.Point C Extensions


atanh.c - listing 1, Sample atanh function

sdot.c - listing 2, Dot product function

next.c - listing 3, Finding the next value

nextaft.c - listing 4, The function nextafter

allisonChuck AllisonCode Capsules: The Standard69

C Library, Part 1

atox.c - listing 1, Converts a hex string to a number in

ASCII environments

atox2.c - listing 2, A portable version of listing 1

atox3.c - listing 3, Converts a hex string to a number via


copy1.c - listing 4, A function that copies a file via

character I/O

copy2.c - listing 5, A function that copies a file via block


view.c - listing 6, Outline of a file viewing program that

illustrates file positioning

sort.c - listing 7, Sorts files as large as available memory

search.c - listing 8, Searches a sorted array of records with

the bsearch function

deal.c - listing 9, A card shuffling program that illustrates

random number and integer division

functions in

readbase.c - listing 10, Uses strtol() to read numbers in

different bases

atox4.c - listing 11, An even better version of atox() using


find.c - listing 12, Uses strstr to find substrings

searches.c - listing 13, Illustrates selected search functions

pughKenneth PughQ&A: Are Marching Pointers91

Really Faster?

aspeed.c - listing 1, A program to compare indexing vs. pointer

addressing for speed


If you have questions regarding to the disk, please call or write us.


R&D Publications, Inc.

1601 W. 23rd St. Suite 200

Lawrence, KS 66046

(913) 841-1631


 December 13, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>