C

accessing a MySQL db

February 12, 2010

4 sample C utility programs that came with MySQL 1. connect_test.c 2. select_test.c 3. insert_test.c 4. list_test.c They came with the disclaimer below. /* connect_test.c A program to connect to a database. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation;...

Read more »

screen I/O pgm

February 10, 2010

This program was written back in the days of cassette tapes!: Screen I/O pgm in C & Pascal. This program will go through a list of songs, throwing out one song or another until it finds a total time that most nearly matches the target time. It will display and write to a (text) file the new (sub) list and, separately, the song(s) that...

Read more »

[C] File I/O and params

February 7, 2010

Written to copy a large file across several floppy disks!: Simple example of file I/O, buffering, and input parameters. The pgm breaks a file into diskette (or any) size pieces. if the parameters are not correct, instructions are written to the screen. #include /* BREAK UP . C */ #define FALSE -1 /* +----------------------+ */ #define TRUE 0 /* | This c program is...

Read more »