Skip to content

Instantly share code, notes, and snippets.

@markrwilliams
Created December 24, 2013 02:36
Show Gist options
  • Save markrwilliams/8108046 to your computer and use it in GitHub Desktop.
Save markrwilliams/8108046 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <sys/socket.h>
int
main(int argc, char *argv[])
{
printf("%d %d %d\n", CMSG_ALIGN(sizeof(int)), CMSG_ALIGN(sizeof (struct cmsghdr)), CMSG_SPACE(sizeof(int)));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment