On Tue, Oct 25, 2005, Loic Minier wrote:
>  I also attach a test case showing that Linux popen fails with the "b"
>  flag.

 Oups, here you go.

-- 
Loïc Minier <[EMAIL PROTECTED]>
"What do we want? BRAINS! When do we want it? BRAINS!"
#include <stdio.h> /* popen(), fprintf(), pclose() */

int main(void) {
    FILE * f;
    f = popen("cat", "w");
    if (NULL == f)
        return 1;
    fprintf(f, "Foo 1.\n");
    pclose(f);
    f = popen("cat", "wb");
    if (NULL == f)
        return 2;
    fprintf(f, "Foo 2.\n");
    pclose(f);
    return 0;
}

Reply via email to