11 lines
361 B
C
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
|