Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

LaunchDarkly Sample C Client-Side Application

We've built a simple console application that demonstrates how LaunchDarkly's SDK works.

Below, you'll find the basic build procedure, but for more comprehensive instructions, you can visit your Quickstart page or the Client-Side C/C++ SDK reference guide.

Build instructions

  1. Download the latest SDK for your platform with fetch-linux.sh, fetch-mac.sh, or fetch-windows.ps1.

  2. Edit hello.c and set the value of MOBILE_KEY to your LaunchDarkly mobile key. If there is an existing boolean feature flag in your LaunchDarkly project that you want to evaluate, set FEATURE_FLAG_KEY to the flag key.

#define MOBILE_KEY "1234567890abcdef"

#define FEATURE_FLAG_KEY "my-flag"
  1. On the command line, run build-linux.sh, build-mac.sh, or build-windows.ps1 to build for your platform.

  2. Run ./hello

You should see the message "Feature flag '<flag key>' is <true/false> for this user".

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •