the fprintf is not working but the printf is working.
Type: Posts; User: thinice16
the fprintf is not working but the printf is working.
the fprintf is not working its printing random numbers in the file were the directory names are supposed to be.
Can yall help this is as far as i got.
#include <dirent.h>
#include <stdio.h>
I kinda need a little but more from the example because im still not getting it i get confused working with directories but i can work with files which is funny but if you can write a simpler example...
Im currently trying to make a search program that will scan directories and get all the file names and i heard you can do it with scandir but i need a little example to get me going.
I was curious is there a C function that can rename directories?
Should i do it like this?
while(1) {
fgets(filetext,2048,stdin);
filetext[strlen(filetext) -1] = '\0';
printf("[%s]",filetext);
if(strstr(filetext,"~")) {
I need help i cant figure out how to delete this newline without deleting it from the file if you know what i mean heres my code the problem is in the while loop.Because if i delete the newline right...
Linux Slackware.
I was curious how to lock a text file and unlock it?
I want to take all of a specific letter from a string and insert another letter were the old ones were i just cant figure out how.For example say you enter the string "goodbye" and i want to change...
It works now thanks guys. :)
I need help im trying to make a little program that just changes the current directory but i get a segmentation fault.
#include <stdio.h>
#include <unistd.h>
int main() {
I know most of the basics im just new to the whole framebuffer thing.
-thanks
I was curious if its possible to make a cool gui using the linux framebuffer if so can anyone give me a example?
-thanks