• 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
[OT] A bit confused on pointers...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[OT] A bit confused on pointers...


  • Subject: [OT] A bit confused on pointers...
  • From: Sanri Parov <email@hidden>
  • Date: Thu, 29 Dec 2005 00:20:24 +0100

Hi everybody,

Cocoa is a great superset of C because... it has very little use of pointers. :-))
Probably it' s because it's getting late now I am writing, but here's the question.
I've got a file read with:

fread (buffer, 1,size,pFile);

in a for() cycle that reads several files. "buffer" is a char* and so another variable called finalBuffer (char*)
All I want to do is to costantly update finalBuffer so it's the sum of all the single buffer from every single file.

finalBuffer +=*buffer

is the right choice?
Pardon me, but after having coded just on databases and NSTableViews my mind is starting to sink ...
Many thanks for all the kind replies and Happy New Year to everybody.

--
Sanri Parov from iBook



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: [OT] A bit confused on pointers...
      • From: Camillo Lugaresi <email@hidden>
    • Re: [OT] A bit confused on pointers...
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: NSTextField: textDidEndEditing delegate isn't firing
  • Next by Date: Re: NSTextField: textDidEndEditing delegate isn't firing
  • Previous by thread: Re: NSTextField: textDidEndEditing delegate isn't firing
  • Next by thread: Re: [OT] A bit confused on pointers...
  • Index(es):
    • Date
    • Thread