Text Application In C - Source Included

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
Evan





Posts: 105
Joined: Fri Oct 26, 2007 1:26 pm
Location: Indiana

Text Application In C - Source Included

Post by Evan »

Well to start out learning C i wanted to start with a easier kind of project so I could get a good handle on the basics. The idea of a text document creator and opener sounded relatively easy but it was harder than I thought. But after I started to learn some different things, it became very easy.

Well after a couple days of toying around in C I made a little franken-app.

It's pretty strait forward... It starts up and asks for input. The different input commands are:

open

create

Thats it. All of the input fields will only accept 256 characters and I am trying to figure out how to make it receive longer character arrays. I added a few comments and things to help you understand what my functions do and what needs to be added/fixed. Also I know I spelled the project name wrong. It was a typo.

Feel free to give any suggestions and comments on what I can do different or what to fix, ect...
Attachments
Notpad.rar
(196.48 KiB) Downloaded 12 times
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Re: Text Application In C - Source Included

Post by Patrickssj6 »

256 (255) characters because you store them in 1 byte only or ASCII encoding.
...left for good
Evan





Posts: 105
Joined: Fri Oct 26, 2007 1:26 pm
Location: Indiana

Post by Evan »

Well what method could I use to have strings longer than 256?
Post Reply