The Open Source Swiss Army Knife

/code/c/ISO_c_basics/
/code/c/ISO_c_basics/ + sub-categories
http://www.sirfsup.com/
web directory content
    
      

Not logged in
Chat Register Login
return to:  http:/www.sirfsup.com      /code   /c   /ISO_c_basics 
sub-categories and articles

                                                  
dirarguments_c add
dirbitwise bitwise c operators such as || and &&
dirmacros add
dirmemory c memory allocation samples
dirpointers add
dirprintf add
dirrand_c add
dirstandardIO ANSI c standard IO functions: fread fwrite fopen
dirvariadic add
   --->create new sub-category


add_null.c
function to change a "line" into a 'string'

// temp scrap file to see how to add a null character onto a non-null character

alpha_test.cpp
is_alpha is_alnum

#include <iostream>

array.c
simplest array example possible

int main() {

c.htm
see storage_classes.htm

moved to storage_classes.htm

char_to_int.c
add

#include <stdio.h>

chkexit.c
atexit(), atoi(), abort()

/*

data_tipz.htm
microsoft and unix specific and ISO c data types (int, size_t...

C data types


definitions.htm
definitions of terms used in style sheets

C/C++ helper file

  1. definitions
  2. storage classes
  3. miscellaneous notes

division.c
add

int main() {

fflush.c
add

// postgresql-7.4.1/src/backend/postmaster/postmaster.c

for.c
add

//  exiting a for loop on some condition:break,continue

fpswitch.c
uses pointers to functions to accomplish a switch

/*

fputc.c
add

/* http://vip.cs.utsa.edu/usp/  dr.robbins utsa computer science  "unix systems programming" */

function.c
c = 7/9*9 PRINTS zero??

#include <iostream>

genrandom.c
random numbers

/*  

hello.c
hello world

#include <stdio.h>

hellow.c
hello world

# include <stdio.h>

hith.c
add

#include <stdio.h>

isascii.c
add

#include <stdio.h>

itoa.c
add

inline string toStr4(double x) // may be w/o inline

itoa.htm
add

http://www.tek-tips.com/viewthread.cfm?qid=964159&page=1

libc_a_nm_out.txt
add

init-first.o: U abort U __close U _dl_non_dynamic_init

mask_log.c
demonstrate openlog() and family

/*

mini_faq.htmlint2string
add

<!-- X-URL: http://www.rafb.net/efnet_cpp/mini_faq.html --> <!-- Date: Mon, 10 Jun 2002 10:32:57 GMT --> <BASE HREF="http://www.rafb.net/efnet_cpp/mini_faq.html"> <?xml version="1.0" encoding="us-ascii"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

notes.htm
add

see definitions.htm and storage_classes.htm and ../unix_c/threads.htm for the contents of this old file.


palloc.c
add

/******************************************************************************

proper_scanf.c
add

#include <stdio.h>

puts.c
both puts and printf take a pointer as argument
is okay to leave out asterisk

#include <stdio.h>

scanf
add

ELF4E4 (# 444TTT /lib/ld-linux.so.2GNU th"!x6M45"b2&ȃ"Sd __gmon_start__libc.so.6printfputs__cxa_finalize__deregister_frame_infoscanf_IO_stdin_used__libc_start_main__register_frame_infoGLIBC_2.1.3GLIBC_2.0si ii P 48<@DHLUSP[(tЍv3]5,%0%4h%8h%<h%@h%Dh %Hh(%Lh01^PTRh<h(QVhUuK tt&B ҋ  u踘t h:]ÐU]ÍUhthh]Ð&U]ÐUEEEE}u`E}u$ huEPhq}u hKEPhG뚉 uEd$$uhS ÐUEv h@ h h h hEPh}~}EEEÐUStv'ЋuX[]U]ÐUSR[v] Enter a signed decimal integer (i.e. -123)%d Enter an unsigned decimal integer (e.g. 123)%f

scanf.c
scanf

/* demonstration of using scanf() */

sizeof.c
sizeof a string

 /* SIZEOF.C--Program to tell the size of the C variable */

snprintf.c
add

// postgresql-7.4.1/src/backend/postmaster/postmaster.c

sort.c
add

#include <stdlib.h>

stdlib.h_src
add

/* Copyright (C) 1991-99,2000,01,02 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either

storage_classes.htm
add

C/C++ helper file

  1. storage classes

strcasecmp
add

/* * http_hdrs.c -- This file contains declarations for http headers * Created: Christopher Blizzard <blizzard@appliedtheory.com>, 3-Aug-1998 * * Copyright (C) 1998 Free Software Foundation

strchr.c
add

/* basic strchr */

strcpy.c
add

#include<stdio.h>

string_comp.c
string comparison between pointers

#include <stdio.h>

strncpy.c
add

#include <stdio.h>

strncpy_kde.c
add

/****************************************************************

strrchr
add

please see <url:strrchr1.c:strrchr1.c>

strrchr1.c
add

/* strrchr: returns a pointer to the last occurrence of the string searched for (the second arg) */

strrchr2.c
add

#include <sys/types.h>

strstr.c
add

/* looks like strstr finds an occurrence of something in the string  */

strtok.c
add

#include <stdio.h> /* Need this for NULL */

strtok2.c
strtok parses this string on the NL

#include "program_utility.h"

strtol.c
add

/* mod_pgsqllog.c  1.3.1 apache module puts log files into postgresql database */

test.c
add

#include <stdio.h>

test.s.txt
what exactly is this?

.file "test.c" .file 1 "test.c" .section .debug_abbrev,"",@progbits .Ldebug_abbrev0:

time.c
add

// does not work yet

time2.c
difftime time_t tm gmtime asctime

// source: http://c.conclase.net/librerias/funcion.php?fun=ctime

typedef.txt
add

1) What's the difference between: struct customStruct { int RecID; char *Name;

unions.htm
add

union

Declaring a Union

  1. declare the union as specified below and fill-in the types of variables which are possible in your little union
  2. set the union member with the "dot-of" operator as shown below

while.htm
the while clause works while its argument is defined

   --->upload your article


User submitted category site links


(None)

-->submit a page from your site dealing with ISO_c_basics to the sirfsup! web directory for listing

return to top