Ending char* vector in c -


how mark end of char* vector '\0' null-terminate it? if have char* vector:

 char* param[5]; 

i thought of either

 param[4] = '\0'; 

or

char c = '\0'; param[4] = &c; 

but none of them seem work?

param char-pointer vector, supposed point 5 strings(char-vectors).

ok trying end vector of strings, similar passed main argv. in case need assign null pointer:

param[4] = 0; 

Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -