// function: mymemory // // arguments: // char* buf: the input value // // return: nothing // void mymemory(char* buf) { buf[0] = 'J'; buf[1] = 'o'; buf[2] = 'e'; buf[3] = (char)NULL; fprintf(stdout, "inside mymemory(): buf = %u\n", buf); return; } // function: mymatrix // // arguments: // float* x; // long ncols; // // return: bool // // This function simply returns the factorial of the argument. // bool mymatrix(float* x, long nrows, long ncols) { float mm[nrows][ncols]; long k = 0; for (long i = 0; i < nrows; i++) { for (long j = 0; j < ncols; j++) { x[k++] = i + j; mm[i][j] = i + j; } } return true; }