[AD] [ alleg-Patches-1333576 ] ustrdup_conv |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Patches item #1333576, was opened at 2005-10-20 15:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=1333576&group_id=5665
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Crashfourit (crashfourit)
Assigned to: Nobody/Anonymous (nobody)
Summary: ustrdup_conv
Initial Comment:
/**********************************************************************
Similar to ustrdup, but converts a string to a new
format in the prosses.
"type" specifies the type of string in "source"
"newtype" specfies the type of the string to be returned
**********************************************************************/
char *ustrdup_conv(const char *source, int type, int
newtype)
{
int length;
char *tmp;
if (!source) return NULL;
length = uconvert_size(source, U_CURRENT, U_UNICODE);
tmp = (char *) malloc(length);
if (!tmp) return NULL;
tmp = uconvert(source, type, tmp, newtype, length);
return tmp;
};
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305665&aid=1333576&group_id=5665