gershman,
@gershman@mastodon.acm.org avatar

Internet search is absolute shit.

Question: Is there a way to block/ignore a function provided by a library in favor of my own so I don't have to rename things?

Ex: I have my own code with a 'pause' function, but the code requires "unistd.h" for other stuff. "unistd.h" already has a 'pause' function (different return/params, etc.)

Is there a way to include "unistd.h" but tell the compiler to favor my 'pause' function instead?

#C

slink,
@slink@fosstodon.org avatar

@gershman search: use
use library function names: don't. while you can play some preprocessor trickery, all you will end up with is confusion all over the place.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • C_Programming
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines