c convert string to size_t

#include <stdio.h>
#include <stdlib.h>

int main() {
    char str[] = "12345";
    size_t result = strtoul(str, NULL, 10);
    printf("Converted value: %zu\n", result);
    return 0;
}