Re: First program in C - what is going on with function returns?



I think I did this since I couldn't figure out how to return a string.

"char speakdate(int d, int m, int y) {" works ok, but

"char[whatever] speakdate(int d, int m, int y) {" didn't.

Is there another syntax to use here?

.



Relevant Pages

  • Re: socket communication: send & receive doesnt work right
    ... So I don't want to send a string as bytes. ... public void send_doubles(double vals, int len) throws ... // send a short acknowledgement to the server ... char *result; ...
    (microsoft.public.win32.programmer.networks)
  • Re: [PATCH] markers: modpost
    ... pointers to the name/format string pairs. ... The same can then be done with modules using the __markers section. ... +static void read_markers(const char *fname) ... int main ...
    (Linux-Kernel)
  • Re: [PATCH] markers: modpost
    ... This adds some new magic in the MODPOST phase for CONFIG_MARKERS. ... will be a neighbor of its format string. ... +static void read_markers(const char *fname) ... int main ...
    (Linux-Kernel)
  • Re: Is this code totaly a shit?
    ... | void UppStrg(char *Low, char *Upp, int cnt); ... whitespace-delimited string. ... You're also assuming that the representations of the characters ...
    (comp.lang.c)
  • Re: Accessing MATLAB workspace variables from MEX
    ... from source (a better way open it in gvim & search the char & delete ... void mexFunction(int nlhs, mxArray *plhs, int nrhs, const mxArray ... I know that I have given the syntax wrong for mexPutVariable. ...
    (comp.soft-sys.matlab)