Codebase list libhdate / eb53b33d-0869-45b4-af96-c77fd700e4ac/upstream USE
eb53b33d-0869-45b4-af96-c77fd700e4ac/upstream

Tree @eb53b33d-0869-45b4-af96-c77fd700e4ac/upstream (Download .tar.gz)

USE @eb53b33d-0869-45b4-af96-c77fd700e4ac/upstream

b46e66a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
libhdate USE file

CONTENTS
========
1] Usage, if you have pkg-config
2] Usage, if you don't have pkg-config
3] An expanded example
3.1] Small sample source code
3.2] Compile it
3.3] Execute it


1] Usage, if you have pkg-config
================================
gcc -c `pkg-config --cflags libhdate` <your code>.c 
gcc `pkg-config --libs libhdate` <your code>.o -o <program name>


2] Usage, if you don't have pkg-config
======================================
gcc -c <your code>.c 
gcc -lm -lhdate <your code>.o -o <program name>

  
3] An expanded example
======================


3.1] Small sample source code
=============================
// example code: file: test.c
#include <stdio.h>
#include <hdate.h>

#define TRUE  1
#define FALSE 0

int
main()
{
	hdate_struct	*h;	

	h = hdate_hdate( 0,0,0);
	
	printf ("%s\n", hdate_get_format_date (h, FALSE) );
	
	return 0;
}


3.2] Compile it
===============
gcc -lm -lhdate test.c -o test


3.3] Execute it
===============
./test