DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T s

⟦aa89ba5bb⟧ TextFile

    Length: 592 (0x250)
    Types: TextFile
    Names: »shift.c«

Derivation

└─⟦060c9c824⟧ Bits:30007080 DKUUG TeX 2/12/89
    └─⟦this⟧ »./DVIware/laser-setters/quicspool/libtrw/shift.c« 
└─⟦52210d11f⟧ Bits:30007239 EUUGD2: TeX 3 1992-12
    └─⟦af5ba6c8e⟧ »unix3.0/DVIWARE.tar.Z« 
        └─⟦ca79c7339⟧ 
            └─⟦this⟧ »DVIware/laser-setters/quicspool/libtrw/shift.c« 

TextFile

static char *rcs = "$Header: shift.c,v 1.1 88/01/15 12:56:32 simpson Rel $";
/*
$Log:	shift.c,v $
 * Revision 1.1  88/01/15  12:56:32  simpson
 * initial release
 * 
 * Revision 0.1  87/12/11  17:14:10  simpson
 * beta test
 * 
*/
#include <ctype.h>

/*
 * Downshifts a string in place.
 */
char *string_downshift(s)
char *s;
{

	register char *x = s;
	for (; *x; x++)
		if (isupper(*x))
			*x = tolower(*x);
	return(s);
}

/*
 * Upshifts a string in place.
 */
char *string_upshift(s)
char *s;
{

	register char *x = s;
	for (; *x; x++)
		if (islower(*x))
			*x = toupper(*x);
	return(s);
}