-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetstring.h
More file actions
27 lines (22 loc) · 765 Bytes
/
netstring.h
File metadata and controls
27 lines (22 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
*
* Copyright (C) 2012
* Author: Islam Bahnasy <islam.bahnasy@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
*/
#ifndef NETSTRING_H
#define NETSTRING_H
char *
netstring_encode(const void *, size_t, size_t *);
void *
netstring_decode(const char *, size_t *);
#endif