diff options
Diffstat (limited to 'Examples/fortran/string/example.c')
-rw-r--r-- | Examples/fortran/string/example.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Examples/fortran/string/example.c b/Examples/fortran/string/example.c new file mode 100644 index 000000000..85d00b612 --- /dev/null +++ b/Examples/fortran/string/example.c @@ -0,0 +1,9 @@ +/* File : example.c */ +#include <stdio.h> + +void sayhi(char *str, char *ret) { + if (ret != NULL) { + sprintf(ret, "hello %s", str); + } + return; +} |