• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Implicit Declaration Warning
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Static variable intiialization (Was: Re: EXC_BAD_ACCESS in an strange place)
  • Next by Date: FW: Weak-link to a framework
  • Previous by thread: Re: Static variable intiialization (Was: Re: EXC_BAD_ACCESS in an strange place)
  • Next by thread: FW: Weak-link to a framework
  • Index(es):
    • Date
    • Thread