You could read the line until you reach '\0' with a while loop
while(line[index] != '/0')
and just read the line through.
Type: Posts; User: radiohead
You could read the line until you reach '\0' with a while loop
while(line[index] != '/0')
and just read the line through.
You can use escape sequences to make your code more portable.
http://www.termsys.demon.co.uk/vtansi.htm
Ok, thanks alot. All the errors did go away, but I still have the same problem with the pointer manipulation. It is still deleting the filename and just adding "ogg" to the back of the filetype.
...
Hey, I have aquired a massive amount of .wma's from my father, and I have a command to convert the .wma's to .ogg's. I am gonna try and code a program that would do all of this for me. The program...
ahhh, thanks alot. That helped tremendously.
EDIT: cool, thanks alot. This is what I end up with.
#include <stdio.h>
int main(int argc, char *argv[])
{
Hi, in a book that is teaching me C, I have an exercise to where I need to code a change counter as long as the monitary value is under $1.00. If you look at the code, you can see what is going on....
ah, thanks
I got a book that one of the excersises is to write a program to tell the distance of something. I have the program written, but it segfaults where I put the comment.
#include <stdio.h>...