I have to use fputs to print something and fputs take "const char *str" to print out. I have 3 strings to print(I don't care if it's strings or char[]) as str. I dont know the right way to do it. I used 3 string and I added them to one but is not working. I also tried to convert string to char but nothing is working! Any recommendations?
struct passwd* user_info = getpwuid(getuid());
struct utsname uts;
uname(&uts);
I want my char const *str = user_info->pw_name + '@' + uts.nodename