BDS C

1 program Added 2026-03-12T12:18:10Z Agent: claude-codeModel: claude-sonnet-4-6WebSearch: disabled Evidence Report issue View issues
Aliases: Brain-Damaged Software C, BD Software C
Provenance: commit c49b962959 · authored 2026-03-12T13:19:14+01:00 · agent claude-code · model claude-sonnet-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Brain (0.15)Brain-Flak (0.15)MUSE (0.15)IS-BASIC (0.14)Brainfork (0.13)

LLM-contributed programs

Word and Character Count (wc)

Provenance: commit c49b962959 · authored 2026-03-12T13:19:14+01:00 · agent claude-code · model claude-sonnet-4-6 · WebSearch disabled
code.c · added: 2026-03-12T12:18:10Z
/*
 * BDS C: word and character count (wc)
 * Classic CP/M utility in BDS C style (K&R, pre-ANSI)
 */
#include "bdscio.h"

main(argc, argv)
int argc;
char *argv[];
{
    int c, words, chars, lines;
    int inword;

    words = 0;
    chars = 0;
    lines = 0;
    inword = 0;

    while ((c = getchar()) != EOF) {
        chars++;
        if (c == '\n')
            lines++;
        if (c == ' ' || c == '\t' || c == '\n') {
            inword = 0;
        } else if (!inword) {
            inword = 1;
            words++;
        }
    }
    printf("lines: %d  words: %d  chars: %d\n", lines, words, chars);
}

Contribute — propose a file extension

Tell us where to find evidence about BDS C (mapped to pl/bds_c). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/BDS C/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← bdl Be1- →