📄 valpkge.su.lib
字号:
VALPKGE - routines to handle variables of type Valuevtoi cast Value variable as an intvtol cast Value variable as a longvtof cast Value variable as a floatvtod cast Value variable as a doubleatoval convert ascii to Valuevaltoabs take absolute value of a Value variablevalcmp compare Value variablesprintfval printf a Value variablefprintfval fprintf a Value variablescanfval scanf a Value variableprintftype printf for the type of a segy header wordFunction Prototypes:int vtoi(register cwp_String type, Value val);long vtol(register cwp_String type, Value val);float vtof(register cwp_String type, Value val);double vtod(register cwp_String type, Value val);void atoval(cwp_String type, cwp_String keyval, Value *valp);Value valtoabs(cwp_String type, Value val);int valcmp(register cwp_String type, Value val1, Value val2);void printfval(register cwp_String type, Value val);void fprintfval(FILE *stream, register cwp_String type, Value val);void scanfval(register cwp_String type, Value *valp);Notes:A Value is defined by the following in .../su/include/su.h:typedef union { * storage for arbitrary type * char s[8]; short h; unsigned short u; long l; unsigned long v; int i; unsigned int p; float f; double d; unsigned int U:16; unsigned int P:32;} Value;The use of the valpkge routines, as well as the hdrpkge routines,permits the user to change the definition of the types of the various fields of the segy data type, without breaking codes thatlook at part or all of these fields.Authors: CWP: Jack K. Cohen, Shuki Ronen
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -