<commit_before>#include <rtosc/rtosc.h>
#include <stdio.h>
#include <err.h>

char buffer[1024];

//verify that empty strings can be retreived
int main()
{
    size_t length = rtosc_message(buffer, 1024, "/path", "sss", "", "", "");
    // /pat h000 ,sss 0000 0000 0000 0000
    if(length != 28)
        errx(1, "Bad length for empty strings...");
    if(!rtosc_argument(buffer, 0).s ||
            !rtosc_argument(buffer, 1).s ||
            !rtosc_argument(buffer, 2).s)
        errx(1, "Failure to retreive string pointer...");
    printf("%p %p %p\n",
            rtosc_argument(buffer, 0).s,
            rtosc_argument(buffer, 1).s,
            rtosc_argument(buffer, 2).s);
    return 0;
}<commit_msg>test/empty-strings: fixed compilation for non-POSIX systems<commit_after>#include <rtosc/rtosc.h>
#include <stdio.h>
#include <stdlib.h>

char buffer[1024];

//verify that empty strings can be retreived
int main()
{
    size_t length = rtosc_message(buffer, 1024, "/path", "sss", "", "", "");
    // /pat h000 ,sss 0000 0000 0000 0000
    if(length != 28)
    {
        fprintf(stderr, "Bad length for empty strings...");
        exit(1);
    }
    if(!rtosc_argument(buffer, 0).s ||
            !rtosc_argument(buffer, 1).s ||
            !rtosc_argument(buffer, 2).s)
    {
        fprintf(stderr, "Failure to retreive string pointer...");
        exit(1);
    }
    printf("%p %p %p\n",
            rtosc_argument(buffer, 0).s,
            rtosc_argument(buffer, 1).s,
            rtosc_argument(buffer, 2).s);
    return 0;
}
{'fraction_non_alphanumeric': 0.16286644951140064, 'fraction_numerical': 0.049511400651465795, 'mean_word_length': 2.51487414187643, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4971036', 'n_tokens_mistral': 590, 'n_tokens_neox': 520, 'n_words': 129}