I want to create a function that calls scanf() and passes the input to the main function. How would I do this?
#include <stdio.h>
void check(char **num){
        scanf("%s", num); //i want to 
}
int main(){
        char *num = NULL;
        check(&num); //initiates scanf
        printf("%s\n", num); //the inputted value from check
}
