/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>

int main()
{
    const char *s = "Sunset glow on the horizon";
    int frqs[256] = { 0 };
    int len = strlen(s);
    for (int i = 0; i < len; i++) {
        char c = tolower(s[i]);
        if(isalpha(c))
        {
            frqs[(unsigned)c] += 1;
        }
    }
    for (int i = 0; i < len; i++) {
        char c = tolower(s[i]);
        if (frqs[(unsigned)c] == 1) {
            printf("%c", c);
        }
    }
    printf("\n");
    return 0;
}
