From 06dac4e28838ee915fad50cf20b896dd83668524 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Tue, 11 Jun 2013 13:24:27 +0000 Subject: [PATCH] Implementando métodos para que um script rexx possa alterar o clipboard salvo --- util.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+), 0 deletions(-) diff --git a/util.c b/util.c index 5895599..99b552e 100644 --- a/util.c +++ b/util.c @@ -929,6 +929,21 @@ LIB3270_EXPORT void * lib3270_malloc(int len) return r; } +LIB3270_EXPORT void * lib3270_strdup(const char *str) +{ + char *r; + + r = strdup(str); + if (r == (char *)NULL) + { + Error(NULL,"Out of memory in %s",__FUNCTION__); + return 0; + } + + return r; +} + + LIB3270_EXPORT char * lib3270_get_resource_string(H3270 *hSession, const char *first_element, ...) { #ifdef ANDROID -- libgit2 0.21.2