Skip to content

Commit 13661b9

Browse files
committed
v1.2.0
1 parent 3973eca commit 13661b9

1 file changed

Lines changed: 31 additions & 28 deletions

File tree

uprintf.h

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
1-
// uprintf v1.1.0
2-
// Documentation, examples and issues: https://github.com/spevnev/uprintf
1+
// MIT License
2+
//
3+
// Copyright (c) 2024 Serhii Pievniev
4+
//
5+
// Permission is hereby granted, free of charge, to any person obtaining a copy
6+
// of this software and associated documentation files (the "Software"), to deal
7+
// in the Software without restriction, including without limitation the rights
8+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
// copies of the Software, and to permit persons to whom the Software is
10+
// furnished to do so, subject to the following conditions:
11+
//
12+
// The above copyright notice and this permission notice shall be included in all
13+
// copies or substantial portions of the Software.
14+
//
15+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
// SOFTWARE.
322

4-
// Minimal example:
523
/*
24+
25+
uprintf v1.2.0
26+
Documentation, examples and issues: https://github.com/spevnev/uprintf
27+
28+
Minimal example:
29+
```
630
#define UPRINTF_IMPLEMENTATION
731
#include "uprintf.h"
832
@@ -17,41 +41,20 @@ int main(void) {
1741
uprintf("structure: %S\n", &s);
1842
return 0;
1943
}
20-
*/
44+
```
2145
22-
// Building and running:
23-
/*
46+
Building and running:
47+
```
2448
$ gcc -g2 example.c
2549
$ ./a.out
2650
structure: {
2751
int i = 1
2852
float f = 2.300000
2953
const char *str = 0x559467793d83 ("string")
3054
}
55+
```
3156
*/
3257

33-
// MIT License
34-
//
35-
// Copyright (c) 2024 Serhii Pievniev
36-
//
37-
// Permission is hereby granted, free of charge, to any person obtaining a copy
38-
// of this software and associated documentation files (the "Software"), to deal
39-
// in the Software without restriction, including without limitation the rights
40-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41-
// copies of the Software, and to permit persons to whom the Software is
42-
// furnished to do so, subject to the following conditions:
43-
//
44-
// The above copyright notice and this permission notice shall be included in all
45-
// copies or substantial portions of the Software.
46-
//
47-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
52-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
53-
// SOFTWARE.
54-
5558
// ====================== HEADER ==========================
5659

5760
#ifndef UPRINTF_H

0 commit comments

Comments
 (0)