2006-10-12から1日間の記事一覧

strcpy_s

strcpy_sというMicrosoftが推奨する安全なstrcpyというのがあるのですが、これが、 errno_t strcpy_s(char *strDestination, size_t sizeInBytes, const char *strSource);というプロトタイプになっており、まぁ、sizeInBytesのおかげで安全に暮らせるのです…