C Tutorial/string.h/strxfrm


Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179

Deprecated: Creation of dynamic property PPDStack::$accum is deprecated in /var/www/cppe.ru/www/includes/parser/Preprocessor_DOM.php on line 803

Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/includes/exception/MWExceptionHandler.php on line 179

Deprecated: Constant E_STRICT is deprecated in /var/www/cppe.ru/www/vendor/mediawiki/at-ease/src/Functions.php on line 48
Материал из C\C++ эксперт
Версия от 10:32, 25 мая 2010; Admin (обсуждение | вклад) (1 версия: Импорт контента...)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

strxfrm

Item Value Header file string.h Declaration size_t strxfrm(char *str1, const char *str2, size_t count); Return returns the length of the transformed string.

The strxfrm() function transforms the string pointed to by str2. Not more than count characters are written to the array pointed to by str1.


#include <string.h>
  #include <stdio.h>
  int main(void)
  {
    char *s1 = "asdfasdfasdf";
    char *s2 = "asdfasdfasdf";
   
    strxfrm(s1, s2, 10);
  }