[問題] strtok
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Ubuntu 10.10 gcc
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question): strtok 結果不如預期
預期的正確結果(Expected Output): 希望在prefix_eval function中可以
繼續讀取下一個token
錯誤結果(Wrong Output): 在function中都回傳NULL
程式碼(Code):(請善用置底文網頁, 記得排版)
http://codepad.org/y4NKg3lp
補充說明(Supplement):
爬板看了strtok有一個 static的變數
buff 也是global的..感覺應該可以讀出next token 但是一直沒有辦法讀到
想請問各位高手原因還有解決的辦法 謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.114.85.77
→
03/23 14:11, , 1F
03/23 14:11, 1F
推
03/23 14:41, , 2F
03/23 14:41, 2F
→
03/23 14:46, , 3F
03/23 14:46, 3F
→
03/23 14:46, , 4F
03/23 14:46, 4F
→
03/23 14:47, , 5F
03/23 14:47, 5F
→
03/23 14:47, , 6F
03/23 14:47, 6F
→
03/23 14:59, , 7F
03/23 14:59, 7F
討論串 (同標題文章)
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章