colobot-data/help/F/cbot/strlen.txt

19 lines
719 B
Plaintext
Raw Normal View History

\b;Instruction \c;strlen\n;
2013-10-10 14:10:20 +00:00
Cette instruction retourne la longueur d'une chaîne de caractères.
2013-10-10 14:10:20 +00:00
Syntaxe:
\s;\c;strlen ( string );\n;
2013-10-10 14:10:20 +00:00
Exemples:
\s;\c; int len = strlen("abc"); // len vaut 3
\s; int len = strlen(""); // len vaut 0
\s; if ( strlen(s) == 0 ) // chaîne s vide ?
\n;
2013-10-10 14:10:20 +00:00
\t;Dictionnaire anglais-français
\c;string\n; = chaîne de caractères
\c;length\n; = longueur
\t;Voir aussi
\c;\l;strleft\u cbot\strleft;\n;, \c;\l;strright\u cbot\strright;\n;, \c;\l;strmid\u cbot\strmid;\n;, \c;\l;strfind\u cbot\strfind;\n;, \c;\l;strval\u cbot\strval;\n;, \c;\l;strupper\u cbot\strupper;\n;, \c;\l;strlower\u cbot\strlower;\n;
2013-10-10 14:10:20 +00:00
\l;Programmation\u cbot;, \l;types\u cbot\type; et \l;catégories\u cbot\category;.