International
Tables for
Crystallography
Volume G
Definition and exchange of crystallographic data
Edited by S. R. Hall and B. McMahon

International Tables for Crystallography (2006). Vol. G. ch. 5.6, p. 544

Table 5.6.1.1 

P. J. Ellisa and H. J. Bernsteinb*

a Stanford Linear Accelerator Center, 2575 Sand Hill Road, Menlo Park, CA 94025, USA, and bDepartment of Mathematics and Computer Science, Kramer Science Center, Dowling College, Idle Hour Blvd, Oakdale, NY 11769, USA
Correspondence e-mail:  yaya@bernstein-plus-sons.com

Table 5.6.1.1 | top | pdf |
Return values from CBFlib functions

Error code Hexadecimal value Meaning
CBF_FORMAT 1 Invalid file format
CBF_ALLOC 2 Memory allocation failed
CBF_ARGUMENT 4 Invalid function argument
CBF_ASCII 8 Value is ASCII (not binary)
CBF_BINARY 10 Value is binary (not ASCII)
CBF_BITCOUNT 20 Expected number of bits does not match the actual number written
CBF_ENDOFDATA 40 End of the data reached before end of array
CBF_FILECLOSE 80 File close error
CBF_FILEOPEN 100 File open error
CBF_FILEREAD 200 File read error
CBF_FILESEEK 400 File seek error
CBF_FILETELL 800 File tell error
CBF_FILEWRITE 1000 File write error
CBF_IDENTICAL 2000 A data block with the new name already exists
CBF_NOTFOUND 4000 Data block, category, column or row does not exist
CBF_OVERFLOW 8000 Number read cannot fit into the destination argument; destination has been set to the nearest value
CBF_UNDEFINED 10000 Requested number not defined
CBF_NOTIMPLEMENTED 20000 Requested functionality is not yet implemented