home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 15
/
CD_ASCQ_15_070894.iso
/
news
/
683
/
recio120
/
whatsnew.
< prev
Wrap
Text File
|
1994-04-08
|
2KB
|
29 lines
recio, Version 1.20, Release April 8, 1994.
Copyright (C) 1994, William Pierpoint.
WHAT'S NEW in RECIO version 1.20?
Created new rerrstr and rstrerror functions. Simplified TESTCH.C and
TESTCO.C code by using rerrstr.
Changed the specification and code for the rgets and rcgets functions to
return a pointer to an empty string (rather than a null pointer) on error.
This will help reduce null pointer errors in application programs.
Changed the specification and code for the rgetrec function. The rgetrec
function now clears the record buffer before the next record is read.
This will cause the error number to be set to R_EMISDAT if the application
ignores the eof indicator and attempts to read fields in records beyond
end-of-file. There is one exception: if the field just prior to the record
buffer string terminator is a string field (which for an empty record buffer
is the first field), it won't be trapped as missing data. This is an
unavoidable consequence of allowing empty string fields. But you shouldn't
be ignoring end-of-file anyway! Also rgetrec continues to increment the
record number if the program reads beyond end of file. This solves an
"off by one" bug when the file ends prematurely.
Developed the dif program to locate line where two text files first
differ. Inserted dif source into TUTOR.TXT to illustrate a very simple
callback error function. Substituted the dif program for the cmp program
in regression test TEST.BAT.