I want to write a character array char array="some text" in a file what is the easiest way to write this in C.Actually i am writing a device driver so i have to write code in C for Device driver.And from user space i have to read an array of characters from user space and also write a character array in kernel space but i am new to C so that’s why i was asking this question.
I want to write a character array char array=some text in a file what
Share
Edit:
had the arguments of
fputsbackwards.fputsdoes not return number of bytes written. Just an error code.