Code Fragments and Utilities |
Home | About me | Applications
| Code Fragments
| Contact
Information |
|
This page contains a number of code fragments and small utility programs
available for general use by anyone who thinks
they may be useful. I have written many of these at different times and have found them to be
useful on many occasions, hence they are here.
Take a look at the copyright notice for licencing or conditions of use of the individual
code fragments/utilities.
|
Usefull Cross Platform Classes |
|
All of the code snippets and classes are free to use as long as my copyright licence is kept for my sections of code.
|
| Name |
Files |
Information |
|
| gps functions |
gps.zip (source)
|
Simple GPS reading/parser functions complete with UNIX makefile and example program.
The code should compile under almost all compilers.
|
| TFTP functions |
tinytftp-1.0.tar.gz (source)
|
Simple TFTP framework, written to be used for a single TFTP connection on microcontroller.
The file and socket handling part of the code is completly independant of the TFTP code as that is the system dependant part. By doing that, the code can be implemented on
any UDP enabled microprocessor- including ones that dont even have a file system.
The code should compile under almost all compilers.
|
|
Utilities |
|
All of the utilities are released under the GPL licencing
for use and modifications.
|
| Name |
Files |
Information |
|
| hex |
hex.c (source)
hex (linux x86)
|
A simple hex file viewer that I wrote many years ago
so that I always had a hex viewer available when I needed it.
It should compile under any system that has a standard c
compiler.
Usage: hex [filenametoshow]
|
| c2rtf |
c2rtf.c (source)
c2rtf (linux x86)
|
A small C code to RTF converter I wrote whilst still going
to University.
Its a little rough but did the job :)
|
| fixcomments |
fixcomments.c (source)
fixcomments (linux x86)
|
A utility to convert all C++ // comments into
/* */ block comments.
|
| remtabs |
remtabs.c (source)
remtabs (linux x86)
|
A utility that converts tabs in a file to spaces. It doesnt
take notice of file type, or formatting.
|
| makeproject |
makeproject.sh (script) |
Makeproject is a simple bash script I wrote to create the
nessesary files and directory structure needed for an application
in linux that uses the configure build system.
It creates a dummy application with the project name,
created the configure files and make files.
|
| ted2rtf |
ted2rtf.cpp (code)
ted2rtf (linux x86)
|
TED2RTF is a conversion routine that will convert
text edit files from the Amiga .TED extension to
RTF format.
I wrote it to convert some TED files I had laying
around from my Amiga days.
At the moment, it ignores any character formatting.
Usage: ted2rtf < infile > outfile
|
| number |
number.cpp (source)
number (linux x86)
|
Number is a line number inserter for text files.
It will read a file via standard input and output each line
of the file with a line number.
I know there are otherways to do this, but here it is provided in
a more cross platform way.
Usage: number < infile > outfile
|
| c2html |
c2html.c (source)
c2html (linux x86)
|
A small C code to HTML converter based on the c2rtf program.
|
|
|
|