简体   繁体   中英

How to determine the length of an array of strings in C

I have a function which splits a string into tokens and stores it in an array. How to determine the size of an array of strings of type char** ?

ie: char **input;

全局保留一个变量,然后在该函数中将该变量值递增,该函数会将字符串拆分为标记并存储到数组中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM