News:

Download Pelles C here: http://www.pellesc.se

Main Menu

Small C Programs to Learn From

Started by jos, January 15, 2026, 08:58:58 AM

Previous topic - Next topic

jos

Not sure if this is the right place to put this? But here are some nice simple C programs to learn from?

https://codegnan.com/c-programming-projects/

Vortex

Hi jos,

Thanks. If you are looking for API programming sources, we can help you.
Code it... That's all...

TimoVJL

May the source be with you

jos

Thanks, have gone through theForger, Windows API etc. Scan the net and try to read and understand code I find in C.

I feel like I'm making progress (slowly) when I start from scratch. But trying to use routines or other general programs I get so many errors and warnings! I guess my knowledge of pragma etc. limits me. But it will come eventually...

I have new problems with PDFio, trying to test and compile a file in the library example: pdf2text. (The example I got earlier works just fine?)

PS. have upgraded to Pellesc 13.00.9

TimoVJL

#4
put
#ifndef __POCC__
typedef __int64 ssize_t;        // POSIX type not present on Windows... @private@
#endif
or#ifndef __POCC__
typedef size_t ssize_t;
#endif
it should be in <sys/types.h> without any ifdefs

before headers to pdf2text.c
of mofify pdfio.h and put it there
also compile with -Go Define compability names
May the source be with you

jos

Many thanks again,
Now it works! I'm only using PelleC at the moment, is there a list of all the must-"haves" or not use when using __POCC__? Is there any site to read?

Vortex

Hi jos,

In the manual supplied with Pelles C ( \PellesC\Bin\Help\help0009.chm ) search for this : Predefined preprocessor symbols (POCC)
Code it... That's all...