Scilab 6.1.0
      
      - Scilabヘルプ
 - Strings
 - ascii
 - asciimat
 - blanks
 - char
 - convstr
 - emptystr
 - evstr
 - grep
 - isalphanum
 - isascii
 - isdigit
 - isletter
 - isnum
 - justify
 - length
 - part
 - prettyprint
 - regexp
 - sci2exp
 - strcat
 - strchr
 - strcmp
 - strcspn
 - strindex
 - string
 - strings
 - stripblanks
 - strncpy
 - strrchr
 - strrev
 - strsplit
 - strspn
 - strstr
 - strsubst
 - strtod
 - strtok
 - tokenpos
 - tokens
 
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
strncpy
文字列から文字をコピーする
呼び出し手順
res = strncpy(str1, num)
引数
- str1
 文字列または文字列の行列
- num
 行列で,ソースからコピーされる文字の最大長
- res
 文字列または文字列の行列
説明
res = strncpy(str1, num) は,
            ソースstr1から
            デスティネーションresに
            最初のnum文字をコピーします.
numはstr1と同じ次元であるか,
            numが整数値である必要があります.
例
strncpy('scilab',3) strncpy(['scilab','SciLab';'strncpy','strstr'],3) strncpy(['scilab','SciLab';'strncpy','strstr'],[1,2;3,4])
| Report an issue | ||
| << stripblanks | Strings | strrchr >> |