diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2008-01-27 11:37:44 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@xenon.tklauser.home> | 2008-01-27 11:37:44 +0100 |
commit | 7e0f021a9aec35fd8e6725e87e3313b101d26f5e (patch) | |
tree | b1cacc4b24393f517aeb4610e9e1021f954307a8 /reference/C/MISC |
Initial import (2.0.2-6)2.0.2-6
Diffstat (limited to 'reference/C/MISC')
-rw-r--r-- | reference/C/MISC/CLASSES/Makefile.am | 5 | ||||
-rw-r--r-- | reference/C/MISC/CLASSES/Makefile.in | 410 | ||||
-rw-r--r-- | reference/C/MISC/CLASSES/Numbers.java | 111 | ||||
-rw-r--r-- | reference/C/MISC/Makefile.am | 6 | ||||
-rw-r--r-- | reference/C/MISC/Makefile.in | 528 | ||||
-rw-r--r-- | reference/C/MISC/Master.html | 36 | ||||
-rw-r--r-- | reference/C/MISC/download.html | 149 | ||||
-rw-r--r-- | reference/C/MISC/io.html | 89 | ||||
-rw-r--r-- | reference/C/MISC/linklists.html | 119 | ||||
-rw-r--r-- | reference/C/MISC/numconv.html | 41 | ||||
-rw-r--r-- | reference/C/MISC/perl.html | 40 | ||||
-rw-r--r-- | reference/C/MISC/stdfiles.html | 81 |
12 files changed, 1615 insertions, 0 deletions
diff --git a/reference/C/MISC/CLASSES/Makefile.am b/reference/C/MISC/CLASSES/Makefile.am new file mode 100644 index 0000000..5b076f8 --- /dev/null +++ b/reference/C/MISC/CLASSES/Makefile.am @@ -0,0 +1,5 @@ +EXTRA_DIST = $(wildcard *.class) $(wildcard *.java) +docs_DATA = $(EXTRA_DIST) + +docsdir = $(kde_htmldir)/en/kdevelop/$(subdir) + diff --git a/reference/C/MISC/CLASSES/Makefile.in b/reference/C/MISC/CLASSES/Makefile.in new file mode 100644 index 0000000..1e54c4e --- /dev/null +++ b/reference/C/MISC/CLASSES/Makefile.in @@ -0,0 +1,410 @@ +# KDE tags expanded automatically by am_edit - $Revision: 1.2 $ +# Makefile.in generated automatically by automake 1.5 from Makefile.am. + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = ../../../.. + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_alias = @build_alias@ +build_triplet = @build@ +host_alias = @host_alias@ +host_triplet = @host@ +target_alias = @target_alias@ +target_triplet = @target@ +AMTAR = @AMTAR@ +ARTSCCONFIG = @ARTSCCONFIG@ +AS = @AS@ +AUTODIRS = @AUTODIRS@ +AWK = @AWK@ +CC = @CC@ +CONF_FILES = @CONF_FILES@ +CPP = @CPP@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +DCOPIDL = @DCOPIDL@ +DCOPIDL2CPP = @DCOPIDL2CPP@ +DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DPMSINC = @DPMSINC@ +DPMSLIB = @DPMSLIB@ +EXEEXT = @EXEEXT@ +GCJ = @GCJ@ +GCJFLAGS = @GCJFLAGS@ +GLINC = @GLINC@ +GLLIB = @GLLIB@ +GMSGFMT = @GMSGFMT@ +IDL = @IDL@ +IDL_DEPENDENCIES = @IDL_DEPENDENCIES@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +JAR = @JAR@ +JAVAC = @JAVAC@ +JAVAH = @JAVAH@ +JVMLIBS = @JVMLIBS@ +KDECONFIG = @KDECONFIG@ +KDE_CXXFLAGS = @KDE_CXXFLAGS@ +KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ +KDE_INCLUDES = @KDE_INCLUDES@ +KDE_LDFLAGS = @KDE_LDFLAGS@ +KDE_PLUGIN = @KDE_PLUGIN@ +KDE_RPATH = @KDE_RPATH@ +KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@ +KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@ +KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@ +KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@ +KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@ +LIBCOMPAT = @LIBCOMPAT@ +LIBCRYPT = @LIBCRYPT@ +LIBDL = @LIBDL@ +LIBGEN = @LIBGEN@ +LIBJPEG = @LIBJPEG@ +LIBMICO = @LIBMICO@ +LIBOBJS = @LIBOBJS@ +LIBPNG = @LIBPNG@ +LIBPTHREAD = @LIBPTHREAD@ +LIBPYTHON = @LIBPYTHON@ +LIBQIMGIO = @LIBQIMGIO@ +LIBRESOLV = @LIBRESOLV@ +LIBSHADOW = @LIBSHADOW@ +LIBSM = @LIBSM@ +LIBSOCKET = @LIBSOCKET@ +LIBTIFF = @LIBTIFF@ +LIBTOOL = @LIBTOOL@ +LIBUCB = @LIBUCB@ +LIBUTIL = @LIBUTIL@ +LIBXINERAMA = @LIBXINERAMA@ +LIBZ = @LIBZ@ +LIB_KAB = @LIB_KAB@ +LIB_KDECORE = @LIB_KDECORE@ +LIB_KDEUI = @LIB_KDEUI@ +LIB_KFILE = @LIB_KFILE@ +LIB_KFM = @LIB_KFM@ +LIB_KFORMULA = @LIB_KFORMULA@ +LIB_KHTML = @LIB_KHTML@ +LIB_KIMGIO = @LIB_KIMGIO@ +LIB_KIO = @LIB_KIO@ +LIB_KPARTS = @LIB_KPARTS@ +LIB_KSPELL = @LIB_KSPELL@ +LIB_KSYCOCA = @LIB_KSYCOCA@ +LIB_KWRITE = @LIB_KWRITE@ +LIB_QT = @LIB_QT@ +LIB_SMB = @LIB_SMB@ +LIB_X11 = @LIB_X11@ +LN_S = @LN_S@ +MCOPIDL = @MCOPIDL@ +MEINPROC = @MEINPROC@ +MICO_INCLUDES = @MICO_INCLUDES@ +MICO_LDFLAGS = @MICO_LDFLAGS@ +MOC = @MOC@ +MSGFMT = @MSGFMT@ +NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@ +NOREPO = @NOREPO@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PAMLIBS = @PAMLIBS@ +PASSWDLIBS = @PASSWDLIBS@ +PYTHONINC = @PYTHONINC@ +PYTHONLIB = @PYTHONLIB@ +PYTHONMODDIR = @PYTHONMODDIR@ +QT_INCLUDES = @QT_INCLUDES@ +QT_LDFLAGS = @QT_LDFLAGS@ +RANLIB = @RANLIB@ +REPO = @REPO@ +SETUIDFLAGS = @SETUIDFLAGS@ +STRIP = @STRIP@ +TOPSUBDIRS = @TOPSUBDIRS@ +UIC = @UIC@ +UIC_TR = @UIC_TR@ +USER_INCLUDES = @USER_INCLUDES@ +USER_LDFLAGS = @USER_LDFLAGS@ +USE_EXCEPTIONS = @USE_EXCEPTIONS@ +USE_RTTI = @USE_RTTI@ +USE_THREADS = @USE_THREADS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XPMINC = @XPMINC@ +XPMLIB = @XPMLIB@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_INCLUDES = @X_INCLUDES@ +X_LDFLAGS = @X_LDFLAGS@ +X_PRE_LIBS = @X_PRE_LIBS@ +all_includes = @all_includes@ +all_libraries = @all_libraries@ +am__include = @am__include@ +am__quote = @am__quote@ +idldir = @idldir@ +install_sh = @install_sh@ +jni_includes = @jni_includes@ +kde_appsdir = @kde_appsdir@ +kde_bindir = @kde_bindir@ +kde_confdir = @kde_confdir@ +kde_datadir = @kde_datadir@ +kde_htmldir = @kde_htmldir@ +kde_icondir = @kde_icondir@ +kde_includes = @kde_includes@ +kde_libraries = @kde_libraries@ +kde_libs_htmldir = @kde_libs_htmldir@ +kde_libs_prefix = @kde_libs_prefix@ +kde_locale = @kde_locale@ +kde_mimedir = @kde_mimedir@ +kde_moduledir = @kde_moduledir@ +kde_qtver = @kde_qtver@ +kde_servicesdir = @kde_servicesdir@ +kde_servicetypesdir = @kde_servicetypesdir@ +kde_sounddir = @kde_sounddir@ +kde_templatesdir = @kde_templatesdir@ +kde_wallpaperdir = @kde_wallpaperdir@ +micodir = @micodir@ +qt_includes = @qt_includes@ +qt_libraries = @qt_libraries@ +x_includes = @x_includes@ +x_libraries = @x_libraries@ + +EXTRA_DIST = $(wildcard *.class) $(wildcard *.java) +docs_DATA = $(EXTRA_DIST) + +docsdir = $(kde_htmldir)/en/kdevelop/$(subdir) +subdir = reference/C/MISC/CLASSES +mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +DIST_SOURCES = +DATA = $(docs_DATA) + +DIST_COMMON = Makefile.am Makefile.in +#>- all: all-am +#>+ 1 +all: docs-am all-am + +.SUFFIXES: + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +#>- cd $(top_srcdir) && \ +#>- $(AUTOMAKE) --gnu reference/C/MISC/CLASSES/Makefile +#>+ 3 + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu reference/C/MISC/CLASSES/Makefile + cd $(top_srcdir) && perl admin/am_edit reference/C/MISC/CLASSES/Makefile.in +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && \ + CONFIG_HEADERS= CONFIG_LINKS= \ + CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status +uninstall-info-am: +install-docsDATA: $(docs_DATA) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(docsdir) + @list='$(docs_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(docsdir)/$$f"; \ + $(INSTALL_DATA) $$d$$p $(DESTDIR)$(docsdir)/$$f; \ + done + +uninstall-docsDATA: + @$(NORMAL_UNINSTALL) + @list='$(docs_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(docsdir)/$$f"; \ + rm -f $(DESTDIR)$(docsdir)/$$f; \ + done +tags: TAGS +TAGS: + + +#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +#>+ 4 +KDE_DIST=Numbers.java Numbers.class + +DISTFILES= $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST) + + +top_distdir = ../../../.. +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) + +distdir: $(DISTFILES) + @for file in $(DISTFILES); do \ + if test -f $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + $(mkinstalldirs) "$(distdir)/$$dir"; \ + fi; \ + if test -d $$d/$$file; then \ + cp -pR $$d/$$file $(distdir) \ + || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(DATA) + +installdirs: + $(mkinstalldirs) $(DESTDIR)$(docsdir) + +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]* + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +#>- clean: clean-am +#>+ 1 +clean: kde-rpo-clean clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + +distclean-am: clean-am distclean-generic distclean-libtool + +dvi: dvi-am + +dvi-am: + +info: info-am + +info-am: + +install-data-am: install-docsDATA + +install-exec-am: + +install-info: install-info-am + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +uninstall-am: uninstall-docsDATA uninstall-info-am + +.PHONY: all all-am check check-am clean clean-generic clean-libtool \ + distclean distclean-generic distclean-libtool distdir dvi \ + dvi-am info info-am install install-am install-data \ + install-data-am install-docsDATA install-exec install-exec-am \ + install-info install-info-am install-man install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool uninstall uninstall-am uninstall-docsDATA \ + uninstall-info-am + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: + +#>+ 2 +docs-am: + +#>+ 6 +force-reedit: + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu reference/C/MISC/CLASSES/Makefile + cd $(top_srcdir) && perl admin/am_edit reference/C/MISC/CLASSES/Makefile.in + + +#>+ 2 +final: + $(MAKE) all-am +#>+ 2 +final-install: + $(MAKE) install-am +#>+ 2 +no-final: + $(MAKE) all-am +#>+ 2 +no-final-install: + $(MAKE) install-am +#>+ 3 +cvs-clean: + $(MAKE) -f $(top_srcdir)/admin/Makefile.common cvs-clean + +#>+ 3 +kde-rpo-clean: + -rm -f *.rpo diff --git a/reference/C/MISC/CLASSES/Numbers.java b/reference/C/MISC/CLASSES/Numbers.java new file mode 100644 index 0000000..84962ba --- /dev/null +++ b/reference/C/MISC/CLASSES/Numbers.java @@ -0,0 +1,111 @@ +import java.applet.*; +import java.awt.*; +import java.lang.*; + +public class Numbers extends Applet +{ + public void init() + { + // Default settings for the frame. + + setBackground(Color.gray); + setForeground(Color.white); + setFont(new Font("Courier", Font.PLAIN, 20)); + + // The way we are going to place items on the Frame. + + GridBagLayout gb = new GridBagLayout(); + GridBagConstraints cgb = new GridBagConstraints(); + setLayout(gb); + + // Create an Item. + + TextArea Text = new TextArea(" Dec Hex Oct Binary ASCII\n" ,10 ,30); + + String Padding = " "; + String DecStr = " "; + String HexStr = " "; + String OctStr = " "; + String BinStr = " "; + String AsciiStr = " "; + + for (long Count=0; Count <= 255; Count++) + { + DecStr = DecStr.valueOf(Count); + DecStr = Padd(DecStr, 4); + HexStr = Long.toString(Count, 16); + HexStr = Padd(HexStr, 4); + OctStr = Long.toString(Count, 8); + OctStr = Padd(OctStr, 4); + BinStr = Long.toString(Count, 2); + BinStr = Padd(BinStr, 9); + AsciiStr = AsciiStr(Count); + AsciiStr = Padd(AsciiStr, 2); + + Text.appendText( DecStr + HexStr + OctStr + BinStr + AsciiStr + "\n"); + } + + Text.setForeground(Color.black); + Text.setBackground(Color.white); + Text.setEditable(false); + + // Set the constraints. + + cgb.gridwidth = 100; + gb.setConstraints(Text, cgb); + + // And place it on the Frame. + + add(Text); + + } + + // Override paint method so it draws a rectange around the Frame + + public void paint(Graphics g) + { + // Get the panels dimentions. + + Rectangle r = bounds(); + + // top left, length across, length down. + + g.drawRect(0, 0, r.width-1, r.height-1); + g.drawRect(5, 5, r.width-11, r.height-11); + } + + public String Padd(String Str, int Size) + { + String Padding = " 00000000000000"; + + String PaddedStr = Padding.substring(0, Size-Str.length()) + Str; + return PaddedStr; + } + + public String AsciiStr(long Num) + { + String[] Ascii = {" "," "," "," "," "," "," "," "," "," ", + " "," "," "," "," "," "," "," "," "," ", + " "," "," "," "," "," "," "," "," "," ", + " "," "," ","!","\"","#","$","%","&","'", + "(",")","*","+","'","-",".","/","0","1", + "2","3","4","5","6","7","8","9",":",";", + "<","=",">","?","@","A","B","C","D","E", + "F","G","H","I","J","K","L","M","N","O", + "P","Q","R","S","T","U","V","W","X","Y", + "Z","[","\\","]","^","_","`","a","b","c", + "d","e","f","g","h","i","j","k","l","m", + "n","o","p","q","r","s","t","u","v","w", + "x","y","z","{","|","}","~" + }; + String Ret = " "; + + if (Num < 127) + { + Ret = Ascii[(int) Num]; + } + + return Ret; + } +} + diff --git a/reference/C/MISC/Makefile.am b/reference/C/MISC/Makefile.am new file mode 100644 index 0000000..600e306 --- /dev/null +++ b/reference/C/MISC/Makefile.am @@ -0,0 +1,6 @@ +EXTRA_DIST = $(wildcard *.html) $(wildcard *.htm) $(wildcard *.gif) +SUBDIRS = CLASSES +docs_DATA = $(EXTRA_DIST) + +docsdir = $(kde_htmldir)/en/kdevelop/$(subdir) + diff --git a/reference/C/MISC/Makefile.in b/reference/C/MISC/Makefile.in new file mode 100644 index 0000000..117320f --- /dev/null +++ b/reference/C/MISC/Makefile.in @@ -0,0 +1,528 @@ +# KDE tags expanded automatically by am_edit - $Revision: 1.2 $ +# Makefile.in generated automatically by automake 1.5 from Makefile.am. + +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +top_builddir = ../../.. + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_HEADER = $(INSTALL_DATA) +transform = @program_transform_name@ +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_alias = @build_alias@ +build_triplet = @build@ +host_alias = @host_alias@ +host_triplet = @host@ +target_alias = @target_alias@ +target_triplet = @target@ +AMTAR = @AMTAR@ +ARTSCCONFIG = @ARTSCCONFIG@ +AS = @AS@ +AUTODIRS = @AUTODIRS@ +AWK = @AWK@ +CC = @CC@ +CONF_FILES = @CONF_FILES@ +CPP = @CPP@ +CXX = @CXX@ +CXXCPP = @CXXCPP@ +DCOPIDL = @DCOPIDL@ +DCOPIDL2CPP = @DCOPIDL2CPP@ +DCOP_DEPENDENCIES = @DCOP_DEPENDENCIES@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DPMSINC = @DPMSINC@ +DPMSLIB = @DPMSLIB@ +EXEEXT = @EXEEXT@ +GCJ = @GCJ@ +GCJFLAGS = @GCJFLAGS@ +GLINC = @GLINC@ +GLLIB = @GLLIB@ +GMSGFMT = @GMSGFMT@ +IDL = @IDL@ +IDL_DEPENDENCIES = @IDL_DEPENDENCIES@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +JAR = @JAR@ +JAVAC = @JAVAC@ +JAVAH = @JAVAH@ +JVMLIBS = @JVMLIBS@ +KDECONFIG = @KDECONFIG@ +KDE_CXXFLAGS = @KDE_CXXFLAGS@ +KDE_EXTRA_RPATH = @KDE_EXTRA_RPATH@ +KDE_INCLUDES = @KDE_INCLUDES@ +KDE_LDFLAGS = @KDE_LDFLAGS@ +KDE_PLUGIN = @KDE_PLUGIN@ +KDE_RPATH = @KDE_RPATH@ +KDE_USE_CLOSURE_FALSE = @KDE_USE_CLOSURE_FALSE@ +KDE_USE_CLOSURE_TRUE = @KDE_USE_CLOSURE_TRUE@ +KDE_USE_FINAL_FALSE = @KDE_USE_FINAL_FALSE@ +KDE_USE_FINAL_TRUE = @KDE_USE_FINAL_TRUE@ +KDE_XSL_STYLESHEET = @KDE_XSL_STYLESHEET@ +LIBCOMPAT = @LIBCOMPAT@ +LIBCRYPT = @LIBCRYPT@ +LIBDL = @LIBDL@ +LIBGEN = @LIBGEN@ +LIBJPEG = @LIBJPEG@ +LIBMICO = @LIBMICO@ +LIBOBJS = @LIBOBJS@ +LIBPNG = @LIBPNG@ +LIBPTHREAD = @LIBPTHREAD@ +LIBPYTHON = @LIBPYTHON@ +LIBQIMGIO = @LIBQIMGIO@ +LIBRESOLV = @LIBRESOLV@ +LIBSHADOW = @LIBSHADOW@ +LIBSM = @LIBSM@ +LIBSOCKET = @LIBSOCKET@ +LIBTIFF = @LIBTIFF@ +LIBTOOL = @LIBTOOL@ +LIBUCB = @LIBUCB@ +LIBUTIL = @LIBUTIL@ +LIBXINERAMA = @LIBXINERAMA@ +LIBZ = @LIBZ@ +LIB_KAB = @LIB_KAB@ +LIB_KDECORE = @LIB_KDECORE@ +LIB_KDEUI = @LIB_KDEUI@ +LIB_KFILE = @LIB_KFILE@ +LIB_KFM = @LIB_KFM@ +LIB_KFORMULA = @LIB_KFORMULA@ +LIB_KHTML = @LIB_KHTML@ +LIB_KIMGIO = @LIB_KIMGIO@ +LIB_KIO = @LIB_KIO@ +LIB_KPARTS = @LIB_KPARTS@ +LIB_KSPELL = @LIB_KSPELL@ +LIB_KSYCOCA = @LIB_KSYCOCA@ +LIB_KWRITE = @LIB_KWRITE@ +LIB_QT = @LIB_QT@ +LIB_SMB = @LIB_SMB@ +LIB_X11 = @LIB_X11@ +LN_S = @LN_S@ +MCOPIDL = @MCOPIDL@ +MEINPROC = @MEINPROC@ +MICO_INCLUDES = @MICO_INCLUDES@ +MICO_LDFLAGS = @MICO_LDFLAGS@ +MOC = @MOC@ +MSGFMT = @MSGFMT@ +NOOPT_CXXFLAGS = @NOOPT_CXXFLAGS@ +NOREPO = @NOREPO@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +PACKAGE = @PACKAGE@ +PAMLIBS = @PAMLIBS@ +PASSWDLIBS = @PASSWDLIBS@ +PYTHONINC = @PYTHONINC@ +PYTHONLIB = @PYTHONLIB@ +PYTHONMODDIR = @PYTHONMODDIR@ +QT_INCLUDES = @QT_INCLUDES@ +QT_LDFLAGS = @QT_LDFLAGS@ +RANLIB = @RANLIB@ +REPO = @REPO@ +SETUIDFLAGS = @SETUIDFLAGS@ +STRIP = @STRIP@ +TOPSUBDIRS = @TOPSUBDIRS@ +UIC = @UIC@ +UIC_TR = @UIC_TR@ +USER_INCLUDES = @USER_INCLUDES@ +USER_LDFLAGS = @USER_LDFLAGS@ +USE_EXCEPTIONS = @USE_EXCEPTIONS@ +USE_RTTI = @USE_RTTI@ +USE_THREADS = @USE_THREADS@ +VERSION = @VERSION@ +XGETTEXT = @XGETTEXT@ +XPMINC = @XPMINC@ +XPMLIB = @XPMLIB@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_INCLUDES = @X_INCLUDES@ +X_LDFLAGS = @X_LDFLAGS@ +X_PRE_LIBS = @X_PRE_LIBS@ +all_includes = @all_includes@ +all_libraries = @all_libraries@ +am__include = @am__include@ +am__quote = @am__quote@ +idldir = @idldir@ +install_sh = @install_sh@ +jni_includes = @jni_includes@ +kde_appsdir = @kde_appsdir@ +kde_bindir = @kde_bindir@ +kde_confdir = @kde_confdir@ +kde_datadir = @kde_datadir@ +kde_htmldir = @kde_htmldir@ +kde_icondir = @kde_icondir@ +kde_includes = @kde_includes@ +kde_libraries = @kde_libraries@ +kde_libs_htmldir = @kde_libs_htmldir@ +kde_libs_prefix = @kde_libs_prefix@ +kde_locale = @kde_locale@ +kde_mimedir = @kde_mimedir@ +kde_moduledir = @kde_moduledir@ +kde_qtver = @kde_qtver@ +kde_servicesdir = @kde_servicesdir@ +kde_servicetypesdir = @kde_servicetypesdir@ +kde_sounddir = @kde_sounddir@ +kde_templatesdir = @kde_templatesdir@ +kde_wallpaperdir = @kde_wallpaperdir@ +micodir = @micodir@ +qt_includes = @qt_includes@ +qt_libraries = @qt_libraries@ +x_includes = @x_includes@ +x_libraries = @x_libraries@ + +EXTRA_DIST = $(wildcard *.html) $(wildcard *.htm) $(wildcard *.gif) +SUBDIRS = CLASSES +docs_DATA = $(EXTRA_DIST) + +docsdir = $(kde_htmldir)/en/kdevelop/$(subdir) +subdir = reference/C/MISC +mkinstalldirs = $(SHELL) $(top_srcdir)/admin/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/config.h +CONFIG_CLEAN_FILES = +DIST_SOURCES = +DATA = $(docs_DATA) + + +RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \ + uninstall-info-recursive all-recursive install-data-recursive \ + install-exec-recursive installdirs-recursive install-recursive \ + uninstall-recursive check-recursive installcheck-recursive +DIST_COMMON = Makefile.am Makefile.in +DIST_SUBDIRS = $(SUBDIRS) +#>- all: all-recursive +#>+ 1 +all: docs-am all-recursive + +.SUFFIXES: + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +distclean-libtool: + -rm -f libtool +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +#>- cd $(top_srcdir) && \ +#>- $(AUTOMAKE) --gnu reference/C/MISC/Makefile +#>+ 3 + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu reference/C/MISC/Makefile + cd $(top_srcdir) && perl admin/am_edit reference/C/MISC/Makefile.in +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + cd $(top_builddir) && \ + CONFIG_HEADERS= CONFIG_LINKS= \ + CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status +uninstall-info-am: +install-docsDATA: $(docs_DATA) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(docsdir) + @list='$(docs_DATA)'; for p in $$list; do \ + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(docsdir)/$$f"; \ + $(INSTALL_DATA) $$d$$p $(DESTDIR)$(docsdir)/$$f; \ + done + +uninstall-docsDATA: + @$(NORMAL_UNINSTALL) + @list='$(docs_DATA)'; for p in $$list; do \ + f="`echo $$p | sed -e 's|^.*/||'`"; \ + echo " rm -f $(DESTDIR)$(docsdir)/$$f"; \ + rm -f $(DESTDIR)$(docsdir)/$$f; \ + done + +# This directory's subdirectories are mostly independent; you can cd +# into them and run `make' without going through this Makefile. +# To change the values of `make' variables: instead of editing Makefiles, +# (1) if the variable is set in `config.status', edit `config.status' +# (which will cause the Makefiles to be regenerated when you run `make'); +# (2) otherwise, pass the desired values on the `make' command line. +$(RECURSIVE_TARGETS): + @set fnord $(MAKEFLAGS); amf=$$2; \ + dot_seen=no; \ + target=`echo $@ | sed s/-recursive//`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + dot_seen=yes; \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done; \ + if test "$$dot_seen" = "no"; then \ + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ + fi; test -z "$$fail" + +mostlyclean-recursive clean-recursive distclean-recursive \ + maintainer-clean-recursive: + @set fnord $(MAKEFLAGS); amf=$$2; \ + dot_seen=no; \ + case "$@" in \ + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ + *) list='$(SUBDIRS)' ;; \ + esac; \ + rev=''; for subdir in $$list; do \ + if test "$$subdir" = "."; then :; else \ + rev="$$subdir $$rev"; \ + fi; \ + done; \ + rev="$$rev ."; \ + target=`echo $@ | sed s/-recursive//`; \ + for subdir in $$rev; do \ + echo "Making $$target in $$subdir"; \ + if test "$$subdir" = "."; then \ + local_target="$$target-am"; \ + else \ + local_target="$$target"; \ + fi; \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + done && test -z "$$fail" +tags-recursive: + list='$(SUBDIRS)'; for subdir in $$list; do \ + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ + done + +tags: TAGS + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + mkid -fID $$unique $(LISP) + +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SUBDIRS)'; for subdir in $$list; do \ + if test "$$subdir" = .; then :; else \ + test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ + fi; \ + done; \ + list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ + || etags $(ETAGS_ARGS) $$tags $$unique $(LISP) + +GTAGS: + here=`CDPATH=: && cd $(top_builddir) && pwd` \ + && cd $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) $$here + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH + +#>- DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +#>+ 4 +KDE_DIST=numconv.html download.html linklists.html stdfiles.html io.html Master.html perl.html + +DISTFILES= $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST) + + +top_distdir = ../../.. +distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) + +distdir: $(DISTFILES) + @for file in $(DISTFILES); do \ + if test -f $$file; then d=.; else d=$(srcdir); fi; \ + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ + $(mkinstalldirs) "$(distdir)/$$dir"; \ + fi; \ + if test -d $$d/$$file; then \ + cp -pR $$d/$$file $(distdir) \ + || exit 1; \ + else \ + test -f $(distdir)/$$file \ + || cp -p $$d/$$file $(distdir)/$$file \ + || exit 1; \ + fi; \ + done + for subdir in $(SUBDIRS); do \ + if test "$$subdir" = .; then :; else \ + test -d $(distdir)/$$subdir \ + || mkdir $(distdir)/$$subdir \ + || exit 1; \ + (cd $$subdir && \ + $(MAKE) $(AM_MAKEFLAGS) \ + top_distdir="$(top_distdir)" \ + distdir=../$(distdir)/$$subdir \ + distdir) \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-recursive +all-am: Makefile $(DATA) +installdirs: installdirs-recursive +installdirs-am: + $(mkinstalldirs) $(DESTDIR)$(docsdir) + +install: install-recursive +install-exec: install-exec-recursive +install-data: install-data-recursive +uninstall: uninstall-recursive + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-recursive +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]* + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +#>- clean: clean-recursive +#>+ 1 +clean: kde-rpo-clean clean-recursive + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean: distclean-recursive + +distclean-am: clean-am distclean-generic distclean-libtool \ + distclean-tags + +dvi: dvi-recursive + +dvi-am: + +info: info-recursive + +info-am: + +install-data-am: install-docsDATA + +install-exec-am: + +install-info: install-info-recursive + +install-man: + +installcheck-am: + +maintainer-clean: maintainer-clean-recursive + +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-recursive + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +uninstall-am: uninstall-docsDATA uninstall-info-am + +uninstall-info: uninstall-info-recursive + +.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \ + clean-generic clean-libtool clean-recursive distclean \ + distclean-generic distclean-libtool distclean-recursive \ + distclean-tags distdir dvi dvi-am dvi-recursive info info-am \ + info-recursive install install-am install-data install-data-am \ + install-data-recursive install-docsDATA install-exec \ + install-exec-am install-exec-recursive install-info \ + install-info-am install-info-recursive install-man \ + install-recursive install-strip installcheck installcheck-am \ + installdirs installdirs-am installdirs-recursive \ + maintainer-clean maintainer-clean-generic \ + maintainer-clean-recursive mostlyclean mostlyclean-generic \ + mostlyclean-libtool mostlyclean-recursive tags tags-recursive \ + uninstall uninstall-am uninstall-docsDATA uninstall-info-am \ + uninstall-info-recursive uninstall-recursive + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: + +#>+ 2 +docs-am: + +#>+ 6 +force-reedit: + cd $(top_srcdir) && \ + $(AUTOMAKE) --gnu reference/C/MISC/Makefile + cd $(top_srcdir) && perl admin/am_edit reference/C/MISC/Makefile.in + + +#>+ 2 +final: + $(MAKE) all-am +#>+ 2 +final-install: + $(MAKE) install-am +#>+ 2 +no-final: + $(MAKE) all-am +#>+ 2 +no-final-install: + $(MAKE) install-am +#>+ 3 +cvs-clean: + $(MAKE) -f $(top_srcdir)/admin/Makefile.common cvs-clean + +#>+ 3 +kde-rpo-clean: + -rm -f *.rpo diff --git a/reference/C/MISC/Master.html b/reference/C/MISC/Master.html new file mode 100644 index 0000000..42e2ad1 --- /dev/null +++ b/reference/C/MISC/Master.html @@ -0,0 +1,36 @@ +<html> +<head> +<title>Imbedding Perl</title> +</head> +<body bgcolor="#ffffcc"> +<hr> +<center> +<h1>Imbedding Perl in C code.</h1> +</center> +<hr> +<p> + +<p> +<hr> +<p> +<center> +<table border=2 width="80%" bgcolor="ivory"> +<tr align=center> +<td width="25%"> +<a href="../cref.html" target="_top">Top</a> +</td><td width="25%"> +<a href="../master_index.html" target="_top">Master Index</a> +</td><td width="25%"> +<a href="../SYNTAX/keywords.html" target="_top">C Keywords</a> +</td><td width="25%"> +<a href="../FUNCTIONS/funcref.htm" target="_top">Functions</a> +</td> +</tr> +</table> +</center> +<p> +<hr> +<address>Martin Leslie +</address> +</body> +</html> diff --git a/reference/C/MISC/download.html b/reference/C/MISC/download.html new file mode 100644 index 0000000..1112f99 --- /dev/null +++ b/reference/C/MISC/download.html @@ -0,0 +1,149 @@ +<html> +<head> +</head> +<body> +<title>Download</title> +<body bgcolor="#ffffcc"> +<hr> +<center> +<h1>Download and install the HTML source.</h1> +</center> +<hr> +<p> + +<!-- Several people have requested a copy of this guide so it can be installed +on local sites. This seems a resonable request so it is now available +via E-mail. --> + +<!-- I have implimented an E-mail approach as I would like to +know where its being installed and E-mail is the only way to get through +my company fire wall. --> + +<!-- If you download the source, you will receive three files. The first contains +details of the install and the following two actually contain the source. --> +<p> +<h2>Install Instructions</h2> +<ul> +<!-- <li>Request the required source by mailing +<a href="mailto:leslim@gatwick.Geco-Prakla.slb.com">leslim@gatwick.Geco.Prakla.slb.com</a> +and place the following request in the <b>subject</b> field. --> +<li>Request the source by clicking on the links below. +The DOS files have been split so you can get them onto floppy disks. +<p> +<ul> +<li>cunix.tgz - tar gzip file contains the complete source for use on Unix machines. +<li>cdos1.zip - Contains most of the source for use on DOS and Windows 3.1 machines. +<li>cdos2.zip - The remainder of the source for DOS and Windows 3.1 machines. +</ul> +<p> +<center> +<table border=1 bgcolor="ivory" width="40%"> +<tr> +<td> +<font color="green">Unix Version. </font> +</td> +</tr> +<tr> +<td> +<a href ="http://home.clara.net/leslim/WWW/cunix.tgz">cunix.tgz</a> +</td> +<td> +1.00 Kbytes +</td> +</tr> +</table> +<p> +<table border=1 bgcolor="ivory" width="40%"> +<tr> +<td> +<font color="green">DOS/Windows 3.1. </font> +</td> +</tr> +<tr> +<td> +<a href ="http://home.clara.net/leslim/WWW/cdos1.zip">cdos1.zip</a> +</td> +<td> +0.86 Kbytes +</td> +</tr> +<tr> +<td> +<a href ="http://home.clara.net/leslim/WWW/cdos2.zip">cdos2.zip</a> +</td> +<td> +0.62 Kbytes +</td> +</tr> + +</table> +</center> +<p> + +<li>Create a suitable directory, like 'cref' and copy the zip or tgz files +into it. + +<li>Unpack with the following commands. +<pre> +<font color="green">Unix</font> + + gunzip cunix.tgz + tar xvf cunix.tar + + +<font color="green">DOS</font> + + pkunzip cdos1.zip + pkunzip cdos2.zip +</pre> +<li>Recompile the Java code in +<pre> + C/MISC/CLASSES +</pre> +The existing binaries are compiled for Linux. BTW the Java compiler +is called <b>javac</b>. + +</ul> +<hr> +<p> +If you have install problems or find mistakes please let me know. +<p> +Windows 3.1 users, you should now be able to install this source with pkunzip. +I have provided the source with 8.3 format names but left the +links in the original (unix) form. Testing this with Netscape 3.01 for +Windows 3.1 and +Internet Explorer, it would seem that the browsers will chop the link name +down to 8.3 format and then attempt to load the resulting file. +<p> +distribution files made with the following commands. +<p> +<pre> +tar cvf ../cunix.tar * --gzip +mv ../cunix.tar ../cunix.tgz +<br> +zip -k -r ../cdos1.zip * -x C/CONTRIB/\* +zip -k -r ../cdos2.zip C/CONTRIB/* +</pre> +<hr> +<p> +<center> +<table border=2 width="80%" bgcolor=ivory> +<tr align=center> +<td width="25%"> +<a href="../cref.html" target="_top">Top</a> +</td><td width="25%"> +<a href="../master_index.html" target="_top">Master Index</a> +</td><td width="25%"> +<a href="../SYNTAX/keywords.html" target="_top">C Keywords</a> +</td><td width="25%"> +<a href="../FUNCTIONS/funcref.htm" target="_top">Functions</a> +</td> +</tr> +</table> +</center> +<p> +<hr> +<address>Martin Leslie +</address> +</body> +</html> diff --git a/reference/C/MISC/io.html b/reference/C/MISC/io.html new file mode 100644 index 0000000..356986c --- /dev/null +++ b/reference/C/MISC/io.html @@ -0,0 +1,89 @@ +<title>Input and Output</title> +<body bgcolor="#ffffcc"> +<hr> +<center> +<h1>Input and Output</h1> +</center> +<hr> +<p> +The C language does not have any I/O capability! You can access +files and devices via two groups of functions, these can be split +as shown below.<p> + +<ul> +<li><a href=#low>Low level.</a> +<li><a href=#ansi>ANSI.</a> +</ul> +<a name=low> +<h2>Low Level I/O</h2> + +Low level functions provide direct access to files and devices. If you +only need file read and write you should use the +<a href=#ansi>ANSI</a> functions as your code will remain portable. +If you want to access things like, serial ports, virtual memory and +tape drives, low level I/O is for you.<p> + +Low level functions reference files by a +<a href=../glossary.html#filedes>file descriptor</a>, this descriptor +is created with the <a href=../FUNCTIONS/open.html>open</a> function and +can be referenced by functions like:<p> +<a href=../FUNCTIONS/close.html>close</a><br> +<a href=../FUNCTIONS/read.html>read</a><br> +<a href=../FUNCTIONS/write.html>write</a><br> +mmap - Memory map (Not supported on Linux).<br> +<a href=../MAN/ioctl.htm>ioctl</a> I/O control.<p> + +Three 'file descripters' are opened automatically when your program runs. +These are: +<pre> + File Default + Desc Name device + ---- ---- ------ + 0 <a href=stdfiles.html>stdin</a> Keyboard + 1 <a href=stdfiles.html>stdout</a> Screen + 2 <a href=stdfiles.html>stderr</a> Screen +</pre> + +If you want to use these 'file descriptors', you do not have to issue an +'open'. + + +<a name=ansi> +<h2>ANSI standard functions</h2> + +These functions are defined in the +<a href=../FUNCTIONS/funcref.htm#stdio>stdio.h</a> header. + +The important thing to remember with these functions is the data +is presented in a consistant manor across all platforms. A record +is considered to be 0 or more characters followed by a +<a href=../FUNCTIONS/escape.html>newline</a> character. +If the actual (physical) record is terminated in some other way, the +functions will perform the conversion for you. +<hr> +<p> +<center> +<table border=2 width=80% bgcolor=ivory> +<tr align=center> +<td width=25%> +<a href="../cref.html" target="_top">Top</a> +</td><td width=25%> +<a href="../master_index.html" target="_top">Master Index</a> +</td><td width=25%> +<a href="../SYNTAX/keywords.html" target="_top">C Keywords</a> +</td><td width=25%> +<a href="../FUNCTIONS/funcref.htm" target="_top">Functions</a> +</td> +</tr> +</table> +</center> +<p> +<hr> +<address>Martin Leslie +<script language="JavaScript"> +<!-- // +document.write(document.lastModified); +// --> +</script> +</address> + diff --git a/reference/C/MISC/linklists.html b/reference/C/MISC/linklists.html new file mode 100644 index 0000000..f17b58d --- /dev/null +++ b/reference/C/MISC/linklists.html @@ -0,0 +1,119 @@ +<title>Link Lists</title> +<body bgcolor="#ffffcc"> +<hr> +<center> <h1>Link Lists</h1> </center> +<hr> +<p> +<ul> +<li><a href="#long">Long explanation</a> +<li><a href="#short">Short explanation</a> +</ul> + +<a name=long> +Question, how would you write a program to meet the following requirements? + +<ol> +<li>Read an unknown number of records from a file into memory. A typical +record would look like: +<pre> + Ref Title Cost + --- ----- ---- + 1234 Oracle_Guide 22.95 +</pre> +<li>Perform a numeric sort based on the first field. +<li>Delete duplicate records based on the first field. +</ol> + +One method is to define an +<a href="../CONCEPT/arrays.html#chard">array</a> of records as below: + +<pre> + main() + { + char array[50][80]; /* 50 records, 80 bytes long */ + } +</pre> + +The data can then be read into the array and then actions performed +on the data. +This is OK but has some major problems. +<ol> +<li>The arrary will hold all the data in character format. It would be +nice to hold the integer and decimal numbers in a more appropriate form. +<li>If you have more than 50 records the program has to be altered +and recompiled. +</ol> +The first problem could be fixed by defining an +<a href="../SYNTAX/struct.html#array">array of structures</a> BUT both problems +can be solved with linked lists.<p> + +<a name=short> + +<img src=../../GRAPHICS/linklist.gif align=right> +<p> +The concept of a linked list is fairly simple. It is a group of structures +linked together by pointers, here is a picture:<p> +<br clear=right> +<p> +<p> +The "Name Age Pointer" block could be defined as below: +<pre> + struct record {char name[20]; int age; struct record *next_rec;}; +</pre> + +The important bit is "struct record *next_rec" this is the pointer to the next +structure (record). It will either point to the next record which +will require memory reserved +with the <a href="../FUNCTIONS/malloc.html">malloc</a> function or +<a href="../SYNTAX/null.html">NULL</a> if its the last record. +<p> + +<h2>Examples</h2> + +<img src=../../GRAPHICS/computer.gif align=left> +<a href="../EXAMPLES/linklst1.c"> Here is the first example.</a> +This program is more complicated than I would +like, but its the simplest I can come up with. +<br clear=left> +<p> +<img src=../../GRAPHICS/computer.gif align=center> +<a href="../EXAMPLES/linklst2.c"> +This is the same program</a> but without the heavy commenting. +<br clear=left> +<p> +<img src=../../GRAPHICS/computer.gif align=center> +<a href="../EXAMPLES/linklst3.c"> +This is still the same program</a> but it is slightly simplified with the use +of <a href="../SYNTAX/typedef.html">typedef</a>. +<br clear=left> + +<hr> +<p> +<center> +<table border=2 width=80% bgcolor=ivory> +<tr align=center> +<td width=25%> +<a href="../cref.html" target="_top">Top</a> +</td><td width=25%> +<a href="../master_index.html" target="_top">Master Index</a> +</td><td width=25%> +<a href="../SYNTAX/keywords.html" target="_top">C Keywords</a> +</td><td width=25%> +<a href="../FUNCTIONS/funcref.htm" target="_top">Functions</a> +</td> +</tr> +</table> +</center> +<p> + + + +<hr> +<address>Martin Leslie +<script language="JavaScript"> +<!-- // +document.write(document.lastModified); +// --> +</script> +</address> + diff --git a/reference/C/MISC/numconv.html b/reference/C/MISC/numconv.html new file mode 100644 index 0000000..62a3bf4 --- /dev/null +++ b/reference/C/MISC/numconv.html @@ -0,0 +1,41 @@ +<title>Number converter.</title> +<body bgcolor="#ffffcc"> +<hr> +<center> +<h1>Number conversion</h1> +</center> +<hr> +<font color = red> +A Java compatible browser is required to view this page. +</font> +<p> +<center> +<APPLET code="CLASSES/Numbers.class" width=400 height=400></applet> +</center> + +<hr> +<h3>See Also:</h3> +<a href=../FUNCTIONS/strtol.html>strtol</a> convert a string to a +long, in a given number base. +<p> + + +<hr> +<p> +<center> +<table border=2 width=80% bgcolor=ivory> +<tr align=center> +<td width=25%> +<a href="../cref.html" target="_top">Top</a> +</td><td width=25%> +<a href="../master_index.html" target="_top">Master Index</a> +</td><td width=25%> +<a href="../SYNTAX/keywords.html" target="_top">C Keywords</a> +</td><td width=25%> +<a href="../FUNCTIONS/funcref.htm" target="_top">Functions</a> +</td> +</tr> +</table> +</center> +<p> + diff --git a/reference/C/MISC/perl.html b/reference/C/MISC/perl.html new file mode 100644 index 0000000..f7b6b8b --- /dev/null +++ b/reference/C/MISC/perl.html @@ -0,0 +1,40 @@ +<html> +<head> +<title>Embedding Perl</title> +</head> +<body bgcolor="#ffffcc"> +<hr> +<center> +<h1>Embedding Perl in C code.</h1> +</center> +<hr> +<p> +This +<a href="../EXAMPLES/perl2.c">program</a> +shows how to imbed Perl code into a C program. +The program was inspired by reading this +<a href="../MAN/perlembed.htm">man page</a>. +<p> +<hr> +<p> +<center> +<table border=2 width="80%" bgcolor="ivory"> +<tr align=center> +<td width="25%"> +<a href="../cref.html" target="_top">Top</a> +</td><td width="25%"> +<a href="../master_index.html" target="_top">Master Index</a> +</td><td width="25%"> +<a href="../SYNTAX/keywords.html" target="_top">C Keywords</a> +</td><td width="25%"> +<a href="../FUNCTIONS/funcref.htm" target="_top">Functions</a> +</td> +</tr> +</table> +</center> +<p> +<hr> +<address>Martin Leslie +</address> +</body> +</html> diff --git a/reference/C/MISC/stdfiles.html b/reference/C/MISC/stdfiles.html new file mode 100644 index 0000000..568edc2 --- /dev/null +++ b/reference/C/MISC/stdfiles.html @@ -0,0 +1,81 @@ +<title>STDIN, STDOUT, STDERR</title> +<body bgcolor="#ffffcc"> +<hr> +<center> +<h1>STDIN, STDOUT, STDERR</h1> +</center> +<hr> +<p> +These three file pointers are +automatically defined when a program +executes and provide access to the keyboard and screen. +<p> + +<h2>stdin</h2> + +By default <b>stdin</b> accesses the keyboard. Functions that read +stdin include... +<ul> +<li><a href=../FUNCTIONS/gets.html>gets</a> +<li><a href=../FUNCTIONS/getchar.html>getchar</a> +</ul> +The following functions can access <b>stdin</b> +<ul> +<li>fgets +<li>fgetc +<li>fscanf +</ul> +<a href=../EXAMPLES/stdin.c><img src=../../GRAPHICS/computer.gif></a> +stdin example program. +<h2>stdout</h2> +stdout sends data to the screen. Functions that write to stdout +include.... +<ul> +<li><a href=../FUNCTIONS/printf.html>printf</a> +<li><a href=../FUNCTIONS/puts.html>puts</a> +<li>putchar +</ul> +<h2>stderr</h2> + +stderr also writes to the screen. If you are using a Unix based system +the data sent to stdout and stderr can be seperated and sent to +different places. + +Functions that could write to stderr include... + +<ul> +<li>fprintf +<li>fputs +</ul> + +<hr> +<p> +<center> +<table border=2 width=80% bgcolor=ivory> +<tr align=center> +<td width=25%> +<a href="../cref.html" target="_top">Top</a> +</td><td width=25%> +<a href="../master_index.html" target="_top">Master Index</a> +</td><td width=25%> +<a href="../SYNTAX/keywords.html" target="_top">C Keywords</a> +</td><td width=25%> +<a href="../FUNCTIONS/funcref.htm" target="_top">Functions</a> +</td> +</tr> +</table> +</center> +<p> + +<hr> +If you wish to create file pointers to perform I/O to other devices +you should use <a href=../FUNCTIONS/fopen.html>fopen</a> +<hr> +<address>Martin Leslie +<script language="JavaScript"> +<!-- // +document.write(document.lastModified); +// --> +</script> +</address><p> + |