Skip to content

Instantly share code, notes, and snippets.

@bindle
bindle / odbc-example.c
Created February 26, 2011 23:42
Simple example of a cli client using iODBC.
/*
* ODBC Shell
* Copyright (C) 2011 Bindle Binaries <[email protected]>.
*
* @BINDLE_BINARIES_BSD_LICENSE_START@
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
@bindle
bindle / plist-dump.m
Created November 5, 2010 02:08
reads a plist file for an application
/* reads a plist file for an application */
/* gcc -o plist-dump plist-dump.m -framework Foundation */
#import <Cocoa/Cocoa.h>
#import <Foundation/Foundation.h>
#import <stdio.h>
int main(int argc, char * argv[]);
int main(int argc, char * argv[])
{
@bindle
bindle / test-dlsym.c
Created November 4, 2010 20:32
simple example of dlsym()
/*
* Quick example to test dlsym()
* build: gcc -W -Wall -Werror -o test-dlsym test-dlsym.c
* Usage: ./test-dlsym openldap
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <dlfcn.h>