diff options
Added MIT License
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
new file: ../LICENSE
modified: ../include/alloc.h
modified: ../include/calt.h
modified: ../include/mem.h
modified: alloc/alloc.c
modified: alloc/calloc.c
modified: alloc/free.c
modified: alloc/malloc.c
modified: alloc/memdup.c
modified: alloc/realloc.c
modified: mem/memccpy.c
modified: mem/memchr.c
modified: mem/memcmp.c
modified: mem/memcpy.c
modified: mem/memhash.c
modified: mem/memlen.c
modified: mem/memmem.c
modified: mem/memmove.c
modified: mem/memrchr.c
modified: mem/memrev.c
modified: mem/memset.c
modified: mem/memswap.c
modified: mem/memzero.c
-rw-r--r-- | LICENSE | 22 | ||||
-rw-r--r-- | include/alloc.h | 6 | ||||
-rw-r--r-- | include/calt.h | 6 | ||||
-rw-r--r-- | include/mem.h | 7 | ||||
-rw-r--r-- | src/alloc/alloc.c | 6 | ||||
-rw-r--r-- | src/alloc/calloc.c | 6 | ||||
-rw-r--r-- | src/alloc/free.c | 6 | ||||
-rw-r--r-- | src/alloc/malloc.c | 6 | ||||
-rw-r--r-- | src/alloc/memdup.c | 6 | ||||
-rw-r--r-- | src/alloc/realloc.c | 6 | ||||
-rw-r--r-- | src/mem/memccpy.c | 6 | ||||
-rw-r--r-- | src/mem/memchr.c | 6 | ||||
-rw-r--r-- | src/mem/memcmp.c | 11 | ||||
-rw-r--r-- | src/mem/memcpy.c | 6 | ||||
-rw-r--r-- | src/mem/memhash.c | 6 | ||||
-rw-r--r-- | src/mem/memlen.c | 6 | ||||
-rw-r--r-- | src/mem/memmem.c | 6 | ||||
-rw-r--r-- | src/mem/memmove.c | 6 | ||||
-rw-r--r-- | src/mem/memrchr.c | 6 | ||||
-rw-r--r-- | src/mem/memrev.c | 6 | ||||
-rw-r--r-- | src/mem/memset.c | 6 | ||||
-rw-r--r-- | src/mem/memswap.c | 6 | ||||
-rw-r--r-- | src/mem/memzero.c | 6 |
23 files changed, 156 insertions, 4 deletions
@@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2023 Marc Pervaz Boocha + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/include/alloc.h b/include/alloc.h index bc8c3d8..6877f61 100644 --- a/include/alloc.h +++ b/include/alloc.h @@ -1,4 +1,8 @@ -#pragma once +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ #ifndef CALT_ALLOC_H #define CALT_ALLOC_H #include <stddef.h> diff --git a/include/calt.h b/include/calt.h index 4ea43b0..3422a91 100644 --- a/include/calt.h +++ b/include/calt.h @@ -1,4 +1,8 @@ -#pragma once +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ #ifndef CALT_CALT_H #define CALT_CALT_H diff --git a/include/mem.h b/include/mem.h index 3636bf3..b18822c 100644 --- a/include/mem.h +++ b/include/mem.h @@ -1,5 +1,8 @@ -#pragma once - +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ #ifndef CALT_MEM_H #define CALT_MEM_H #include <stddef.h> diff --git a/src/alloc/alloc.c b/src/alloc/alloc.c index 0ff8ff4..b809956 100644 --- a/src/alloc/alloc.c +++ b/src/alloc/alloc.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <alloc.h> #include <stdlib.h> diff --git a/src/alloc/calloc.c b/src/alloc/calloc.c index 666e0ba..a1a567c 100644 --- a/src/alloc/calloc.c +++ b/src/alloc/calloc.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <alloc.h> #include <mem.h> diff --git a/src/alloc/free.c b/src/alloc/free.c index ef2654d..90d16d5 100644 --- a/src/alloc/free.c +++ b/src/alloc/free.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <alloc.h> extern inline void calt_free(void *ptr); diff --git a/src/alloc/malloc.c b/src/alloc/malloc.c index 9a2e81d..3abcf2e 100644 --- a/src/alloc/malloc.c +++ b/src/alloc/malloc.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <alloc.h> extern inline void *calt_malloc(size_t size); diff --git a/src/alloc/memdup.c b/src/alloc/memdup.c index 60aa35e..dd58856 100644 --- a/src/alloc/memdup.c +++ b/src/alloc/memdup.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <alloc.h> #include <mem.h> diff --git a/src/alloc/realloc.c b/src/alloc/realloc.c index 490ba75..0bb1280 100644 --- a/src/alloc/realloc.c +++ b/src/alloc/realloc.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <alloc.h> #include <mem.h> diff --git a/src/mem/memccpy.c b/src/mem/memccpy.c index 71b5a94..810b71b 100644 --- a/src/mem/memccpy.c +++ b/src/mem/memccpy.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <mem.h> void *calt_memccpy(void *restrict dest, void const *restrict src, unsigned char value, diff --git a/src/mem/memchr.c b/src/mem/memchr.c index 35015db..b583ab3 100644 --- a/src/mem/memchr.c +++ b/src/mem/memchr.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <mem.h> extern inline void *calt_memchr(void const *ptr, unsigned char value, size_t count); diff --git a/src/mem/memcmp.c b/src/mem/memcmp.c index 829325b..bcb2fb5 100644 --- a/src/mem/memcmp.c +++ b/src/mem/memcmp.c @@ -1,3 +1,14 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ #include <mem.h> extern inline int calt_memcmp(void const *ptr1, void const *ptr2, size_t count); diff --git a/src/mem/memcpy.c b/src/mem/memcpy.c index 3372032..7880c53 100644 --- a/src/mem/memcpy.c +++ b/src/mem/memcpy.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <mem.h> extern inline void *calt_memcpy(void *restrict dest, void const *restrict src, diff --git a/src/mem/memhash.c b/src/mem/memhash.c index d752fed..c5cfc62 100644 --- a/src/mem/memhash.c +++ b/src/mem/memhash.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <limits.h> #include <stdint.h> #include <mem.h> diff --git a/src/mem/memlen.c b/src/mem/memlen.c index dfb45fb..6d6ddfe 100644 --- a/src/mem/memlen.c +++ b/src/mem/memlen.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <mem.h> extern inline size_t calt_memlen(void const *ptr, unsigned char value, size_t count); diff --git a/src/mem/memmem.c b/src/mem/memmem.c index 8745923..14be8cc 100644 --- a/src/mem/memmem.c +++ b/src/mem/memmem.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <mem.h> extern inline void *calt_memmem(void const *haystack, size_t haystacklen, diff --git a/src/mem/memmove.c b/src/mem/memmove.c index 79a4ebb..b6c6b1e 100644 --- a/src/mem/memmove.c +++ b/src/mem/memmove.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <mem.h> extern inline void *calt_memmove(void *dest, void const *src, size_t count); diff --git a/src/mem/memrchr.c b/src/mem/memrchr.c index a8d59f2..1799d27 100644 --- a/src/mem/memrchr.c +++ b/src/mem/memrchr.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <mem.h> extern inline void *calt_memrchr(void const *ptr, unsigned char value, size_t count); diff --git a/src/mem/memrev.c b/src/mem/memrev.c index fbc7516..472efcb 100644 --- a/src/mem/memrev.c +++ b/src/mem/memrev.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <mem.h> extern inline void calt_memrev(void *ptr, size_t size); diff --git a/src/mem/memset.c b/src/mem/memset.c index df4c3cd..48fee61 100644 --- a/src/mem/memset.c +++ b/src/mem/memset.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <mem.h> extern inline void *calt_memset(void *dest, unsigned char value, size_t count); diff --git a/src/mem/memswap.c b/src/mem/memswap.c index 612fde5..512c8c9 100644 --- a/src/mem/memswap.c +++ b/src/mem/memswap.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <mem.h> extern inline void calt_memswap(void *restrict ptr1, void *restrict ptr2, size_t size); diff --git a/src/mem/memzero.c b/src/mem/memzero.c index 9388516..c92691f 100644 --- a/src/mem/memzero.c +++ b/src/mem/memzero.c @@ -1,3 +1,9 @@ +/* + * Copyright (c) 2023 Marc Pervaz Boocha + * + * SPDX-License-Identifier: MIT + */ + #include <mem.h> extern inline void *calt_memzero(void *restrict dest, size_t count); |