Back to index

im-sdk  12.3.91
Functions
IMUtil.h File Reference
#include "SunIM.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int utfchar_length (UTFCHAR *)
UTFCHARutfchar_copy (UTFCHAR *, UTFCHAR *)

Function Documentation

UTFCHAR* utfchar_copy ( UTFCHAR ,
UTFCHAR  
)

Definition at line 64 of file IMUtil.c.

{
  int len;

  if (!src || !dest) return NULL;

  len = utfchar_length (src);
  memcpy (dest, src, sizeof (UTFCHAR) * len);
  dest[len] = 0;

  return dest;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int utfchar_length ( UTFCHAR )

Definition at line 54 of file IMUtil.c.

{
  int len = 0;

  while (*p) { ++len; ++p; }

  return len;
}

Here is the caller graph for this function: