AnsweredAssumed Answered

gets does not work in crosscore simulator

Question asked by MikeSmithCanada on Dec 22, 2017
Latest reply on Dec 28, 2017 by Kader.M

I know it is is just before christmas -- and I swear no eggnog is involved

 

I am running CrossCore 2.6.0 -- Blackfin simulator

I can't get gets or fgets to get something from the keyboard

#include <stdio.h>

int main(int argc, char *argv[])
{
    char buff[200];
    fgets(buff, 20, stdin);
    printf(">%s<\n", buff);
    return 0;
}

 

What obvious thing have I missed?

 

Happy Christmas

Outcomes