printf("retrieving cookie(s) for \"%s\" : ", aSpec);
PRINTF("retrieving cookie(s) for \"%s\" : ", aSpec);
void GetACookie(nsICookieService *cookieService, const char* aSpec, char* *aCookie) {    nsCOMPtr<nsIURI> uri;    (void)NS_NewURI(getter_AddRefs(uri), aSpec);    NS_ASSERTION(uri, "malformed uri");       nsString cookie;    printf("retrieving cookie(s) for \"%s\" : ", aSpec);    nsresult rv = cookieService->GetCookieString(uri, cookie);    if (NS_FAILED(rv)) printf("XXX GetCookieString() failed!\n");    if (cookie.IsEmpty()) {        printf("NOT-FOUND\n");    } else {        printf("FOUND: ");        char *cookieString = cookie.ToNewCString();        printf("%s\n", cookieString);        nsCRT::free(cookieString);    }    return;}