File: util.h

package info (click to toggle)
ekeyd 1.1.3-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 628 kB
  • ctags: 859
  • sloc: ansic: 5,189; sh: 271; makefile: 199; perl: 148
file content (23 lines) | stat: -rw-r--r-- 597 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* daemon/util.h
 *
 * Utility functions for Ekey Daemon
 *
 * Copyright 2009 Simtec Electronics
 *
 * For licence terms refer to the COPYING file.
 */

#ifndef DAEMON_UTIL_H
#define DAEMON_UTIL_H

/** Format a number of bytes in a hexidecamal textural representation.
 *
 * @param c The bytes to format.
 * @param l The number of byyes to format.
 * @return A string containing the textural representation.
 * @note This is intended for debugging and the returned string is only valid
 * untill the next call to teh function.
 */
extern char *phex(uint8_t *c, int l);

#endif /* DAEMON_UTIL_H */