string-to-int

cesars/utils/string-to-int

No description
string-to-int
@/string-to-int
INstring
string-to-int
IN
OUT
OUTnumber
To use the node in your project you should have the cesars/utils library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

node {
    char _str[16];

    void evaluate(Context ctx) {
        auto state = getState(ctx);
        auto str = getValue<input_IN>(ctx);
        dump(str,_str);
        emitValue<output_OUT>(ctx, atoi(_str));
    }
}