Implicit Declaration Warning
Implicit Declaration Warning
- Subject: Implicit Declaration Warning
- From: "Steven O'Toole" <email@hidden>
- Date: Fri, 23 Aug 2002 12:49:40 -0700
I've searched the archive and still can't figure out how to get rid of
this warning.
The function is declared in libpq-fe.h (PostgreSQL API) like this:
extern size_t PQescapeString(char *to, const char *from, size_t length);
I import that file like this:
#import <postgresql/libpq-fe.h>
I matched all the parameters and the return value. The function gets
called and works correctly . But why do I still get the warning?
- (NSString *) escapeParameter:(NSString *) param {
char *buffer = nil;
size_t len, esclen = 0;
len = [param length];
buffer = malloc(2 * len);
esclen = PQescapeString(buffer, [param cString], len);
return [NSString stringWithCString:buffer];
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.