Noob Code Question

I'm trying to set the name of my esp8266's wifi ap (I'm using the wifi manager library) to a constant text string followed by a 3 character int variable.

wifiManager.autoConnect(apName);

The start wifi ap function takes the ap name as a char*. How would I set it to the joined text and number?

What joined text and number? I don't see any.

apName = "SALTY-" + random(100,1000);
wifiManager.autoConnect(apName);

random() returns an integer not a string. You need to convert it.

  String stringBuffer = String("SALTY-" + deviceId);
  char* deviceBuffer;
  stringBuffer.toCharArray(deviceBuffer, 10);
  wifiManager.autoConnect(deviceBuffer);

I see four lines of code. Were you trying to communicate something?

I'm trying to set the name of the AP to "SALTY-XXX", but when I run the program, The AP's SSID is "SALTY"

*X represents a number

See reply #3.
Hint: to_string(number).

Not that you should be using the String class at all.