Closed Bug 288061 Opened 20 years ago Closed 20 years ago

Perhaps an error on Chaprer 11 code sample in Determining If the Server Supports LDAPv3 section

Categories

(Directory :: LDAP C SDK, defect)

PowerPC
macOS
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 288063

People

(Reporter: ingconti, Assigned: mcs)

References

()

Details

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/181 (KHTML, like Gecko) Safari/181
Build Identifier: 

I read:
...
 for ( i = 0; vals[i] != NULL; i++ ) {
      if ( !strcmp( ", vals[i] ) ) {
        v3supported = 1;
        break;
      }
    }


BUT strcp MUST deal with a STRING, so "" or other.... 
indeed my gcc says:

error: missing terminating " character



Reproducible: Always

Steps to Reproduce:
1. make a new c project
2. copy code from: 
3.http://www.mozilla.org/directory/csdk-docs/srvrinfo.htm#determine_server_support
4 compile

Actual Results:  
error on gcc


Expected Results:  
I changed to "" but I am NOT SURE


  Machine Name:	Power Mac G5
  Machine Model:	PowerMac7,2
  CPU Type:	PowerPC 970  (2.2)
  Number Of CPUs:	2
  CPU Speed:	2 GHz
  L2 Cache (per CPU):	512 KB
  Memory:	1 GB
  Bus Speed:	1 GHz
  Boot ROM Version:	5.1.4f0
  Serial Number:	CK3380XNNVB


XCODE vers. 2.0

Component versions
Xcode IDE: 493.0
Xcode Core: 493.0
ToolSupport: 486.0


gcc 3.0

*** This bug has been marked as a duplicate of 288063 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.