1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-02-17 15:45:32 -05:00

Main: CONTRIBUTING.md: improve

This commit is contained in:
Alex Kotov 2022-06-15 13:14:37 +03:00
parent 8503637778
commit a75c952b10
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -18,11 +18,17 @@ C language
typedef struct FooBar { int car; } *FooBar;
static struct FooBar FooBar_create();
static void FooBar FooBar_init(FooBar foobar);
static void FooBar_do_something(FooBar foobar);
// ...
// Initialize:
struct FooBar foobar = FooBar_create();
// or
struct FooBar foobar;
FooBar_init(&foobar);
// Use:
FooBar foobar_ptr = &foobar;
FooBar_do_something(&foobar);
```
@ -35,13 +41,13 @@ static void FooBar FooBar_init(FooBar foobar);
static void FooBar_do_something(FooBar foobar);
// ...
// Initialize:
FooBar foobar = { FooBar_create() };
// or
FooBar foobar;
FooBar_init(foobar);
// Use:
FooBar_do_something(foobar);
```