blob: 6ac55551988219479414801fb1477d1a0007e6a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* $OpenBSD: libfoo.c,v 1.2 2001/01/28 19:34:29 niklas Exp $ */
#include <stdio.h>
extern void dltest(const char *s);
const char *const libname = "libfoo.so";
void
foo(const char *s)
{
const char *saved = s;
dltest("called from libfoo");
printf("libfoo: ");
for(; *s; s++);
for(s--; s>= saved; s--) {
putchar(*s);
}
putchar('\n');
}
|