Hello,
This is my code:
i'd like to like to add getenv("MYLIB") in the first case of my buffer inside of '1' , should i do the cast ? and how please ?
Thank you.
Hello,
This is my code:
i'd like to like to add getenv("MYLIB") in the first case of my buffer inside of '1' , should i do the cast ? and how please ?
Thank you.
Remember, a string is just an array of characters.
char *str=getenv("MYLIB");
if(str!=NULL)
{
buffer[0]=str[0];
}