Info2P5/adturing.h
2025-05-09 08:56:54 +02:00

11 lines
361 B
C

#ifndef ADTURING_H
#define ADTURING_H
// Addiert 1 zu einer Dualzahl (als String) und speichert das Ergebnis in output
// input: Dualzahl als String, z.B. "1011"
// output: Ergebnis als String, z.B. "1100"
// maxlen: Maximale Länge des output-Arrays (inklusive '\0')
void dual_addiere_eins(const char *input, char *output, int maxlen);
#endif // ADTURING_H