mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
config
contrib
adddepend
array
btree_gist
chkpass
cube
dbase
dblink
dbmirror
dbsize
earthdistance
findoidjoins
fulltextindex
fuzzystrmatch
intagg
intarray
ipc_check
isbn_issn
lo
ltree
mSQL-interface
mac
miscutil
mysql
noupdate
oid2name
oracle
pg_autovacuum
pg_dumplo
pg_trgm
pg_upgrade
pgbench
pgcrypto
pgstattuple
reindexdb
rtree_gist
seg
spi
preprocessor
README.MAX
example.sql
step1.c
step2.pl
Makefile
README.spi
README.timetravel
autoinc.c
autoinc.example
autoinc.sql.in
insert_username.c
insert_username.example
insert_username.sql.in
moddatetime.c
moddatetime.example
moddatetime.sql.in
refint.c
refint.example
refint.sql.in
timetravel.c
timetravel.example
timetravel.sql.in
start-scripts
string
tablefunc
tips
tools
tsearch
tsearch2
userlock
vacuumlo
xml
xml2
Makefile
README
contrib-global.mk
doc
src
COPYRIGHT
GNUmakefile.in
Makefile
README
README.CVS
aclocal.m4
configure
configure.in
values, whether the local char type is signed or not. This is necessary for portability. Per discussion on pghackers around 9/16/00.
28 lines
333 B
C
28 lines
333 B
C
#include <stdio.h>
|
|
|
|
char *
|
|
strtoupper(char *string)
|
|
{
|
|
int i;
|
|
|
|
for (i = 0; i < strlen(string); i++)
|
|
string[i] = toupper((unsigned char) string[i]);
|
|
return string;
|
|
}
|
|
|
|
|
|
|
|
void
|
|
main(char argc, char **argv)
|
|
{
|
|
char str[250];
|
|
int sw = 0;
|
|
|
|
while (fgets(str, 240, stdin))
|
|
{
|
|
if (sw == 0)
|
|
printf("%s", strtoupper(str));
|
|
}
|
|
|
|
}
|