Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

AddProgramExtension

Adds appropriate extension to program name

Declaration

Source position: fpmkunit.pp line 1701

function AddProgramExtension(

  const ExecutableName: string;

  AOS: TOS

):string;

Arguments

ExecutableName

  

Base executable name to extend

AOS

  

Target operating system for extension

Function result

Program name with platform-appropriate extension

Description

AddProgramExtension adds the platform-appropriate file extension to an executable program name. This function ensures proper executable naming conventions for different operating systems.

The function appends extensions such as .exe for Windows or leaves names unchanged for Unix-like systems, ensuring correct executable file naming for the target platform.


Documentation generated on: Dec 15 2025