-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.c
More file actions
28 lines (26 loc) · 1.47 KB
/
test.c
File metadata and controls
28 lines (26 loc) · 1.47 KB
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
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dlesieur <dlesieur@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/02 15:00:00 by dlesieur #+# #+# */
/* Updated: 2025/07/02 15:00:00 by dlesieur ### ########.fr */
/* */
/* ************************************************************************** */
#include "auto_parser.h"
int main(void)
{
log_msg(LOG_INFO, "Starting test program");
log_msg(LOG_DEBUG, "Debug message with number: %d", 42);
log_msg(LOG_WARNING, "Warning with string: %s", "test");
log_msg(LOG_ERROR, "Error with hex: %x", 255);
log_msg(LOG_SUCCESS, "Success with char: %c", 'A');
log_msg(LOG_INFO, "Complex format: %s has %d items", "List", 5);
log_msg(LOG_DEBUG, "Pointer test: %p", (void *)0x12345678);
log_msg(LOG_INFO, "Unsigned: %u, Octal: %o", 100, 64);
log_msg(LOG_ERROR, "Hex upper: %X, lower: %x", 255, 255);
log_msg(LOG_SUCCESS, "Test completed successfully!");
return (0);
}