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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

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