📄 ms_strncpclean.3
字号:
.TH MS_STRNCPCLEAN 3 2004/11/22 "Libmseed API".SH DESCRIPTIONNon-standard string copying.SH SYNOPSIS.nf.B #include <libmseed.h>.BI "int \fBms_strncpclean\fP ( char *" dest ", const char *" source ", int " length " );".BI "int \fBms_strncpopen\fP ( char *" dest ", const char *" source ", int " length " );".fi.SH DESCRIPTION\fBms_strncpclean\fP copies up to \fIlength\fP characters from\fIsource\fP to \fIdest\fP while removing all spaces. The result isleft justified and always NULL terminated. The destination stringmust have enough room for the non-space characters within \fIlength\fPand the NULL terminator, a maximum of \fPlength\fP + 1.\fBms_strncpopen\fP copies \fIlength\fP characters from \fIsource\fPto \fIdest\fP padding the right side with spaces if needed and leavesthe string open-ended (unterminated). The result will always be\fIlength\fP characters and will never be NULL terminated.These routines are useful for converting to and from known length SEEDstring fields..SH RETURN VALUES\fBms_strncpclean\fP returns the number of characters (not includingthe terminating NULL) in the destination string.\fBms_strncpopen\fP returns the number of characters copied from thesource string..SH AUTHOR.nfChad TrabantIRIS Data Management Center.fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -