推 CoNsTaR: 那你知道 void 和 void* 的差異嗎?08/28 23:57
→ CoNsTaR: * 的意義是什麼?08/28 23:57
→ james732: 你為什麼會覺得void*跟void**是一樣的東西...?08/29 00:02
推 alan23273850: 不過他在預期結果那裏(void**)後面有一個&耶08/29 00:35
→ Lipraxde: **指到*的位置,你雖然去了*的位置,但是沒把*存起來。08/29 07:25
→ Lipraxde: 試試看存起來再取&08/29 07:25
function名稱好像取的不是很好
推文好像都以為是同一個function....
※ 編輯: soheadsome (223.137.244.234), 08/29/2017 07:31:50
※ 編輯: soheadsome (223.137.244.234), 08/29/2017 07:33:19
→ Lipraxde: 抱歉我眼殘的很嚴重08/29 07:53
這是我的問題 大家都用手機 取太像會分不清
※ 編輯: soheadsome (223.137.244.234), 08/29/2017 08:01:29
推 Lipraxde: 我知道了啦,你把g_test_struct用傳值的方式丟到load_ta08/29 08:24
→ Lipraxde: ble_from_shm_voidp裡面。gey_shm裡面雖然有對g_test_st08/29 08:24
→ Lipraxde: ruct做修改,可是你的table沒有被改到08/29 08:24
→ soheadsome: 可是我get shm的時候 是直接用全域變數08/29 08:37
喔喔 我了解了
我傳入的時候g_test_struct 還沒指到shm
傳入table就會是還沒初始化的舊值
感謝<(_ _)>
※ 編輯: soheadsome (223.137.244.234), 08/29/2017 08:47:12
→ Lipraxde: 你用全域變數沒錯,改的是全域的g_test_struct,但是區 08/29 08:47
→ Lipraxde: 域的table沒改到 08/29 08:47