• 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
problems working it out.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

problems working it out.


  • Subject: problems working it out.
  • From: "D. Walsh" <email@hidden>
  • Date: Fri, 17 Jun 2005 13:30:47 -0400
  • Mta-interface: amavisd-new-2.3.1-rc3-E (2005-05-06) at daleenterprise.com

I've got the following routine I was trying to make dynamic but because my programming knowledge is as good as most I've run into a brick wall.

Here's my routine

int config(int argc, char *argv[])

  bool match = false;

  if (argc == 4) {
    if (strncmp("TEST=-YES", buffer, strlen("TEST=-YES"))) {


Here's what I'm trying to achieve, argv[2] holds the string in question I want to test

int config(int argc, char *argv[])

  bool match = false;

  if (argc == 4) {
    if (strncmp(argv[2]"=-YES", buffer, strlen(argv[2]"=-YES"))) {


but obviously this is wrong.


Can someone with better knowledge show me what would be correct please?

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: problems working it out.
      • From: Thaddeus Cooper <email@hidden>
    • Re: problems working it out.
      • From: Frederick Cheung <email@hidden>
  • Prev by Date: Re: YACWP (Yet Another CodeWarrior Port)
  • Next by Date: Re: problems working it out.
  • Previous by thread: Re: GCC-XML for XCode? (was: RE: is there an automated way to beautify code in xcode?)
  • Next by thread: Re: problems working it out.
  • Index(es):
    • Date
    • Thread