當前位置:編程學習大全網 - 網站源碼 - linux的c語言中xstrdup是什麽含義?

linux的c語言中xstrdup是什麽含義?

/* Return a newly allocated copy of STRING. */

char * xstrdup (const char *string)

{

return strcpy (xmalloc (strlen (string) + 1), string);

}

函數功能 copy a string with out of memory checking

懂了吧 ?

goodluck

  • 上一篇:哪些瀏覽器可以直接下載網頁上的視頻
  • 下一篇:若夷的vue3字典取不到值。
  • copyright 2024編程學習大全網