There is a C- code
char* str = NULL; str = (char*) malloc(sizeof(char)*50);
Could I write the same thing in Cobol-85?
Or maybe I can use
01 LE USAGE IS POINTER.
pass it into C-lang function and allocate memory and fill string there and use this pointer on Cobol side for displaying string content? Like
call CFUNC using
by reference LE
by descriptor "TEST STRING"
giving LE.
display LE.