Skip to content

pid

Abstract

getpid returns the PID of its own process.
getpid は自プロセスの PID を返します.

Header file

namespace sstd{
    int32 getpid();
}

Usage

  • main.cpp
    #include <sstd/sstd.hpp>
    
    int main(){
        sstd::printn( sstd::getpid() );
    }
    
  • Execution result
    sstd::getpid() = 1454
    

Implementation