Thanks so much for helping kindly
I am commenting on the code so I could try to understand....I do not have C compiler right now so I can't test things.....hope you will understand and help me......
Type: Posts; User: rubu
Thanks so much for helping kindly
I am commenting on the code so I could try to understand....I do not have C compiler right now so I can't test things.....hope you will understand and help me......
Hi....
I want to do following......... I have a string... "service-name-you" I want to get string "you" extracted only if the "service" is the first item before the first "-"
following is the...
Salem again...thanks.....
But I would like to move the
int getglobalvar (void)
{
return(globalvar);
}
to C++ and make it a C++ function....
Thanks Salem,
Could you please kindly....show me the flow with this change? It will help me to learn and understand...
Thanks much.
I am a newbie so please be easy on me
I have C file...which has following for an example.
extern int globalvar;
void init()
{
Got it....Thanks so much....again thanks so much for being patient...
So when returning the pointer to array.....how important is doing a malloc? is it really needed?
OK I was in the understanding of memset also allocate memory while setting to specific value....
So in your way.....
I believe when I call the function....in some where in the main....I need to...
Quzah,
Thanks for being patient......
I do not see much difference between what you suggest and what I am doing....why can't I use memset instead of malloc?
All...I have following code snippet...I am trying to return a int array from the function.....I am new to C. This causes compile errors could someone please provide me some help.....
Thanks much...