|
ulocate - This was initially written for use under
Linux, as a replacement for the obtuse find
command. It also works in Windows consoles.
ulocate searches all subdirectories below the
specified starting point for any filename containing the provided string.
Optionally, it can also search the PATH for the same criteria.
Last Update: November 14, 2009
|
ULOCATE.EXE, Version 1.08
Usage: ulocate [options] name_component start_path
This program displays all filenames containing a specified
name component, starting at directory [start_path].
Default start_path is current location.
options:
-v Verbose mode - show search paths
-d Debug mode - show other process information
-l follow symbolic links
-w match exact string (whole-word search)
-p Search for name_component in the directories in the PATH variable
NOTE: This option replaces the normal ulocate functionality with
alternate functionality. In this mode, subdirectories are NOT searched!!
Download
ulocate.cpp here
|
|
|
printf2 - open-source implementation of printf/sprintf,
with floating-point support, and no stdio.h dependencies
Last Update: November 14, 2009 |
Embedded firmware environments provide a variety of challenges to the
software developer. One of these challenges is that, typically,
there is no "standard output" device to display messages on, so the
archetypal printf function is not an option. However, the
sprintf function is often still very useful for generating
formatted strings. Unfortunately, in most embedded environments,
linking stdio libraries is not an option, so a non-stdio version of
sprintf is very handy - but find such a function is very
challenging, especially if floating-point support is required!!
In 2002, Georges Menie distributed a version of
printf
which had no stdio/stdlib dependencies, and seems to support all of the
various obtuse printf syntaxes.
His code is clean, short, efficient, and builds on modern gcc
with almost no warnings!
Furthermore, it is distributed under
LGPL, which means it can be used freely by anyone, for any purpose!
The only option missing from his function was floating-point
support, which I need in my ARM9 implementation, so I added that
capability to it. This version has no dependencies on any
standard headers or libraries.
Updates:
12/02/09 - fixed floating-point bug related to padding decimal
portion with zeroes.
Download
printf2.c here
|
|