• 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
Re: va_list customize strings and objects.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: va_list customize strings and objects.


  • Subject: Re: va_list customize strings and objects.
  • From: Keary Suska <email@hidden>
  • Date: Sat, 14 Aug 2010 10:37:57 -0600

On Aug 14, 2010, at 10:13 AM, Mr. Gecko wrote:

> Well this seems to work for everything but floats, I've tried this to fix the float issue but it didn't work.
> case 'f':
> case 'g': {
> 	double floatValue = va_arg(ap, double);
> 	size += sizeof(floatValue);
> 	ap2 = realloc(ap2, size);
> 	ap2[count] = (void *)&floatValue;
> 	break;
> }

Floats and doubles are not the same thing, and usually have different sizes.

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: va_list customize strings and objects.
      • From: Michael Ash <email@hidden>
    • Re: va_list customize strings and objects.
      • From: "Mr. Gecko" <email@hidden>
References: 
 >va_list customize strings and objects. (From: Mr.Gecko <email@hidden>)
 >Re: va_list customize strings and objects. (From: "Mr. Gecko" <email@hidden>)
 >Re: va_list customize strings and objects. (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: Storing objects in NSMutableDictionary
  • Next by Date: Re: va_list customize strings and objects.
  • Previous by thread: Re: va_list customize strings and objects.
  • Next by thread: Re: va_list customize strings and objects.
  • Index(es):
    • Date
    • Thread