Commit 06dac4e28838ee915fad50cf20b896dd83668524
1 parent
82d58a41
Exists in
master
and in
3 other branches
Implementando métodos para que um script rexx possa alterar o clipboard salvo
Showing
1 changed file
with
15 additions
and
0 deletions
Show diff stats
util.c
... | ... | @@ -929,6 +929,21 @@ LIB3270_EXPORT void * lib3270_malloc(int len) |
929 | 929 | return r; |
930 | 930 | } |
931 | 931 | |
932 | +LIB3270_EXPORT void * lib3270_strdup(const char *str) | |
933 | +{ | |
934 | + char *r; | |
935 | + | |
936 | + r = strdup(str); | |
937 | + if (r == (char *)NULL) | |
938 | + { | |
939 | + Error(NULL,"Out of memory in %s",__FUNCTION__); | |
940 | + return 0; | |
941 | + } | |
942 | + | |
943 | + return r; | |
944 | +} | |
945 | + | |
946 | + | |
932 | 947 | LIB3270_EXPORT char * lib3270_get_resource_string(H3270 *hSession, const char *first_element, ...) |
933 | 948 | { |
934 | 949 | #ifdef ANDROID | ... | ... |