玩了一下CE的開發,
發現居然連<io.h>都沒有...
甚至其他
<string.h>
<memory.h>
內容也都只是
#include "stdlib.h"

上網看了一下,有一些人提到用 wcecompat 來處理
但是下載回來後,看到
stdlib_extras.cpp 中寫的 bsearch 內容為

void* bsearch(const void* key, const void* base, size_t nmemb, size_t size, int (*compar)(const void*, const void*))
{
    while (nmemb-- > 0)
    {
        if (compar(key, base) == 0)
            return (void*)base;
        base = (char*)base + size;
    }
    return NULL;
}

當下打了退堂鼓,決定不用!!
相信網路上沒用這個當解決方案的人理由應該也是差不多吧!

文章標籤
全站熱搜
創作者介紹
創作者 hiuga 的頭像
hiuga

網誌測試

hiuga 發表在 痞客邦 留言(1) 人氣(36,800)