• Home
  • History
  • Annotate
  • only in this directory
1/*
2 * Public Domain 2011 Kurt Miller
3 *
4 * $OpenBSD: prog2.C,v 1.1 2011/11/29 04:36:15 kurt Exp $
5 */
6
7#include <iostream>
8#include <dlfcn.h>
9#include <string.h>
10
11int
12main()
13{
14	void *handle1;
15
16	handle1 = dlopen("libaa.so", DL_LAZY);
17	if (handle1 == NULL) {
18		std::cout << "handle1 open libaa failed\n";
19		return (1);
20	}
21	dlclose(handle1);
22
23	return 0;
24}
25