Does NSLog() have variants that print without the time and date stamps, and the automatic newline?
Thanks. Now with following code, I can print NSString, cString, or objects:
#import <Foundation/Foundation.h> #import <stdio.h>  int main (int argc, const char * argv[]) {   NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];    NSString *s = @"Hello, World!";   NSDate *today = [NSDate date];    NSLog(@"%@", s);   printf("%s at %s", [s UTF8String], [[today description] UTF8String]);    [pool drain];   return 0; }   Use printf() instead of NSLog()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With