/ Published in: Objective C
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 #include <sys/sysctl.h> size_t size=0; char *machine=NULL; for(;;) { sysctlbyname("hw.machine",machine,&size,NULL,0); if(!size) break; if(machine) { return platform; } if(!machine) break; } return nil; } // optimistic version char machine[256]; sysctlbyname("hw.machine",machine,&size,NULL,0); }
Comments
                    Subscribe to comments
                
                