logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ms_strncpclean - Non-standard string copying

Author

       Chad Trabant
       IRIS Data Management Center

Libmseed API                                       2004/11/22                                  MS_STRNCPCLEAN(3)

Description

ms_strncpclean  copies up to length characters from source to dest while removing all spaces.  The result
       is left justified and always NULL terminated.  The destination string must have enough room for the  non-
       space characters within length and the NULL terminator, a maximum of length + 1.

       ms_strncpopen  copies  length characters from source to dest padding the right side with spaces if needed
       and leaves the string open-ended (unterminated).  The result will always be length  characters  and  will
       never be NULL terminated.

       These routines are useful for converting to and from known length SEED string fields.

Name

       ms_strncpclean - Non-standard string copying

Return Values

ms_strncpclean  returns  the number of characters (not including the terminating NULL) in the destination
       string.

       ms_strncpopen returns the number of characters copied from the source string.

Synopsis

#include<libmseed.h>intms_strncpclean(char*dest,constchar*source,intlength);intms_strncpopen(char*dest,constchar*source,intlength);

See Also