Paste: factor_eval_string should use F_CHAR*, this feps

Author: erg
Mode: factor
Date: Wed, 14 Jan 2009 03:20:43
Plain Text |
#include <stdio.h>
#include "vm/master.h"

int main(int argc, F_CHAR** argv)
{
        char *ptr;
        F_CHAR *image = L"factor.image";
        char *command = "USING: math.parser math threads prettyprint ; 1 1 + number>string 100000 sleep .";
        init_factor_from_args(image, argc, argv, 1);
        ptr = factor_eval_string(command);
        wprintf("%s = %s\n", command, ptr);
        return 0;
}

New Annotation

Summary:
Author:
Mode:
Body: