I wrote and tested this under SCO Unix. Enjoy.
/*
A Time Example by C Williams
c.williams@swflug.org
for educational purposes only
built on SCO Unix (OpenServer 5.01) Aug 1, 2001
*/
/* our handy include files */
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include...
// filearray.c by C Williams
// for educational purposes only
// this header function will read a file into
// an array and return a pointer to the array
/*
be sure to have these in your main project
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
*/
#define MAXLINES 99999
void...
Why not install Linux or FreeBSD on your own computer and dual-boot? Or if all you want is a command-line interface without XFree86 Windows, just install it on an old 386/486 (we all have at least one in the closet) and you turn it into a Unix box and telnet into it.
It sounds like you'd benefit best by being pointed to the PSDK (Platform Software Development Kit) for MS Windows. The MS Visual C++ kit, MFC, is a C++ wrapper for these lower-level functions. You can write windows aps in regular C using the PSDK functions and including the single header file...
I would recommend gcc (which is a free compiler for multiple platforms). It can be found at http://www.gnu.org/software/gcc/gcc.html . Inprise/Borland has a free version of Borland C++ 5.5 at http://www.borland.com/bcppbuilder/freecompiler . You won't find any free GUI compilers. There is...
Never mind :-) I broke down and wrote one anyway...<br>I'm in a sharing mood:<br><br>char **alpha_sort(char **p_str_arr)<br>{<br><br> // local variables<br> int arr_size;<br> int x;<br> int y;<br> int moved;<br> int i;<br> char *temp;<br><br> // find size of array<br> arr_size = 0;<br> while...
Does anyone know of a *good* function that will sort an array of charcter arrays alphanumerically and return a pointer to the sorted array. Such as sorting <br>char *fruits[6] { "Oranges", "Pears", "Apples", "Bananas", "Appricots"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.