idlastro / Miscellaneous (Non-Astronomy) Procedures: NULLTRIM

[Source code]

NAME
NULLTRIM
PURPOSE
Trim a string of all characters after and including the first null
EXPLANATION
The null character is an ascii 0b
CALLING SEQUENCE
result = nulltrim( st )
INPUTS
st = input string
OUTPUTS
trimmed string returned as the function value.
HISTORY
D. Lindler  July, 1987
Converted to IDL V5.0   W. Landsman   September 1997