mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 01:13:30 +00:00
Fix some copy-and-paste errors.
samples/c_interface/c_calls_mercury/c_main.c:
samples/c_interfcae/simpler_c_calls_mercury/main.c:
As above.
This commit is contained in:
@@ -63,7 +63,7 @@ void c_main(void) {
|
||||
printf("baz(1, &value) returns TRUE with value = %ld\n",
|
||||
(long) value);
|
||||
} else {
|
||||
printf("baz(100, &value) returns FALSE\n");
|
||||
printf("baz(1, &value) returns FALSE\n");
|
||||
}
|
||||
if (baz(100, &value)) {
|
||||
printf("baz(100, &value) returns TRUE with value = %ld\n",
|
||||
|
||||
@@ -71,7 +71,7 @@ int main(int argc, char **argv) {
|
||||
printf("baz(1, &value) returns TRUE with value = %ld\n",
|
||||
(long) value);
|
||||
} else {
|
||||
printf("baz(100, &value) returns FALSE\n");
|
||||
printf("baz(1, &value) returns FALSE\n");
|
||||
}
|
||||
if (baz(100, &value)) {
|
||||
printf("baz(100, &value) returns TRUE with value = %ld\n",
|
||||
|
||||
Reference in New Issue
Block a user