Created
September 21, 2010 21:53
-
-
Save oldpatricka/590653 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bandersnatch:~ patricka$ cat uuidtest.c | |
#import <uuid/uuid.h> | |
#import <stdio.h> | |
int main() { | |
uuid_t my_uuid; | |
uuid_generate(my_uuid); | |
char uuid_string[60]; | |
uuid_unparse(my_uuid, uuid_string); | |
puts(uuid_string); | |
return 0; | |
} | |
Bandersnatch:~ patricka$ gcc uuidtest.c -o uuidtest | |
Bandersnatch:~ patricka$ ./uuidtest | |
F840130F-1E6B-4977-AFAD-7A2FC3CDFABF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
8-)