Hi all, I'm working on an app that will read stdin and simply pass it to a function that ouputs it. I have this so far:
Things appear to work but I wanted to sanity check here that things look ok. Thanks for any guidance.Code:#include <stdio.h> void code_here(char inputData[]); int main(){ char arr[512]; fread(arr, 1, 512, stdin); code_here(arr); return 0; } void code_here(char inputData[]) { // Use this function to output your solution puts(inputData); }