a simple C lib for personal use