File: secshms.h

package info (click to toggle)
gramofile 1.6-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 840 kB
  • ctags: 538
  • sloc: ansic: 10,238; makefile: 55
file content (22 lines) | stat: -rw-r--r-- 574 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* Seconds to Hour:Minute:Seconds and back - Header

 * Copyright (C) 1998 J.A. Bezemer
 *
 * Licensed under the terms of the GNU General Public License.
 * ABSOLUTELY NO WARRANTY.
 * See the file `COPYING' in this directory.
 */

#ifndef HAVE_SECSHMS_H
#define HAVE_SECSHMS_H


void secs2hms (long seconds, char *outstring);	/*  3610  ->  1:00:10  */

void fsec2hmsf (double seconds, char *outstring);	/* 10.4 -> 0:00:10.400 */

int hmsf2fsec (char *instring, double *seconds);
/* returns 0: failure, 1: success; instring will be modified. */


#endif /* HAVE_SECSHMS_H */