How would I be able to input a string on a search bar?

I'm programming in C and got my program to open up a search engine (Microsoft Edge), but I still can't figure out how to get the user's input to be entered in the search bar. I'm wondering if there's an easy way to accomplish my goal?

Here's my code:

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>

#define size 100

int main(){
    // Not sure if I should use (int argc, char **argv, char **envp)

    char input[size];

    Printf("Please input your search!");
    scanf("%s", &input);

    system("\"\"c:\\program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe\" \"\"\"");
return 0;