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

drupal - using views argument in the view tpl.php file -

php - Posting PHPBB Forum Thread/Post info in a website -

php - Add a blog by sending a mail to a certain emailadress -