Cannot return values of char variable



Hi there once more........

Instead of showing all the code my problem is simple.

I've tried to create this function:

char temp(char *string){

alterString(string);
return string;
}

char alterString(char *string){}

temp receives a string and uses the alterString to modify it.

My issue is simple, when i pass the argument string to alterString it
appears in the function alterString has being empty.

I've tried changing the signatures of the functions to
char temp(char string){
char alterString(char string){}


but the issue still occurs......


Can please somebody give me just a little example of the working
function.......... it would really help.....

thanks in advance for every support you have given to me this night.

.



Relevant Pages

  • Re: simple pointers question
    ... char *temp; ... I'm going to *guess* that you mean that temp2 points to the string ... You've declared temp and temp2; ...
    (comp.lang.c)
  • Re: Unmanaged code(dll) function: int myfunc (char* temp)
    ... //Assigning an value to temp ... I am using char* not TCHAR* ... Can you help me how to get the value of temp when using string builder ... int myfunc ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to add thousand separators
    ... First, this code is obsolete as written, because char is a dead data type and should not ... Note that both of these should be stored as string resources since they might need to be ... 18 digits for any reason. ... you have made a VERY SERIOUS DESIGN ERROR. ...
    (microsoft.public.vc.mfc)
  • Re: what is the best way of passing floats into a string
    ... I do not null-terminate as snprintf takes care of this (according to ... But the easiest way to determine the size needed to format a number, ... int length_of_representation(double n,const char* format){ ... I get a nice result of -10.000000 in my char * string. ...
    (comp.unix.programmer)
  • Re: weird problem
    ... I already told you that the comparison between an integer and a float ... to strcmpwhich expects a pointer to a string. ... And now a question about something else: why do you use floating ... int,float, char, etc. ...
    (comp.lang.c)