Firstcommit

This commit is contained in:
root
2025-08-25 20:07:37 +00:00
commit 8eea3162d5
123 changed files with 2680 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* debug.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lfirmin <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/08/23 13:23:51 by lfirmin #+# #+# */
/* Updated: 2025/08/23 13:23:51 by lfirmin ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub.h"
void print_char_array_debug(char **arr, char *name)
{
int i = 0;
printf("=== %s ===\n", name ? name : "CHAR ARRAY");
if (!arr)
{
printf("Array is NULL\n");
return;
}
while (arr[i])
{
printf("[%d] (%zu chars): '%s'\n", i, strlen(arr[i]), arr[i]);
i++;
}
printf("Total lines: %d\n", i);
printf("==============\n");
}