關於sscanf()返回值和識別問題

今天在寫代碼用到sscanf( )的時候發現了一個問題。 根據百科上的sscanf()用法: 給定一個字符串iios/ [email protected], 獲取 / 和 @ 之間的字符串,先將 "iios/"過濾掉,再將非'@'的一串內容送到buf中 1 2 sscanf ( "iios/[email protected]" ,  "%*[^/]/%[^@]" , buf); printf (
相關文章
相關標籤/搜索