Enable ADC via uEnv.txt not make *AIN* and not sure via cpp

Dear People,

I have a beagle-bone black, on a default angstrom distribution (BBB-eMMC-flasher-2013.09.04).
I have modified uEnv.txt to reflect the disabling of HDMI and enabling the ADC (this is on 1 line)

optargs=quiet drm.debug=7 quiet capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN capemgr.enable_partno=BB-ADC

output of

shows that HDMI is disabled and ADC is enabled.
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-ADC

via c++, I am not sure how to enable the command,
system(“echo BB-ADC > /sys/devices/bone_capemgr.”*"/slots");

however a type specific loading does work, but my understanding the number can change based on loading order.
system(“echo BB-ADC > /sys/devices/bone_capemgr.8/slots”);

Help would be greatly appreciated, as I need this to be a standalone system with self boot configuration.

Warm Regards,
R3L4X5.