Logo Search packages:      
Sourcecode: yaskkserv version File versions  Download package

static char* SkkSimpleString::overwrite ( const void *  source,
void *  destination,
int  size 
) [inline, static]

文字列をコピーします。文字列の最後 + 1 を指すポインタを返します。.

Attention:
\0 はコピーされません。

Definition at line 935 of file skk_simple_string.hpp.

        {
                const char *s = static_cast<const char*>(source);
                char *d = static_cast<char*>(destination);

                for (; size > 0; --size)
                {
                        if (*s == '\0')
                        {
                                break;
                        }
                        *d++ = *s++;
                }

                return d;
        }


Generated by  Doxygen 1.6.0   Back to index