Last active
July 15, 2025 08:46
-
-
Save lomassubedi/ce27a56065a847deb6d1dd40ec2a2493 to your computer and use it in GitHub Desktop.
C Header and Source Code Template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* (C) Copyright 2025; Nepal Digital Systems Pvt. Ltd., Kathmandu, Nepal. The | |
* attached material and the information contained therein is proprietary to | |
* Nepal Digital Systems Pvt. Ltd. and is issued only under strict confidentiality | |
* arrangements.It shall not be used, reproduced, copied in whole or in part, adapted, | |
* modified, or disseminated without a written license of Nepal Digital Systems Pvt. | |
* Ltd. .It must be returned to Nepal Digital Systems Pvt. Ltd. upon its first request. | |
*******************************************************************************/ | |
/******************************************************************************* | |
* @file header.h | |
* @author Nepal Digital Systems Pvt. Ltd. | |
* @version 1.0 | |
* @date May 10, 2025 | |
* @brief It is a sample C header | |
******************************************************************************/ | |
#ifndef HEADER_H | |
#define HEADER_H | |
/******************************************************************************* | |
* Include Files | |
*******************************************************************************/ | |
/******************************************************************************* | |
* C++ Declaration Wrapper | |
*******************************************************************************/ | |
#ifdef __cplusplus | |
extern "C" { | |
#endif | |
/******************************************************************************* | |
* Type & Macro Declarations | |
*******************************************************************************/ | |
/******************************************************************************* | |
* Extern Data Declarations | |
*******************************************************************************/ | |
/******************************************************************************* | |
* Extern Function Prototypes | |
*******************************************************************************/ | |
#ifdef __cplusplus | |
} | |
#endif | |
#endif // HEADER_H | |
/******************************************************************************* | |
* End of File | |
*******************************************************************************/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* (C) Copyright 2025; Nepal Digital Systems Pvt. Ltd., Kathmandu, Nepal. The | |
* attached material and the information contained therein is proprietary to | |
* Nepal Digital Systems Pvt. Ltd. and is issued only under strict confidentiality | |
* arrangements.It shall not be used, reproduced, copied in whole or in part, adapted, | |
* modified, or disseminated without a written license of Nepal Digital Systems Pvt. | |
* Ltd. .It must be returned to Nepal Digital Systems Pvt. Ltd. upon its first request. | |
*******************************************************************************/ | |
/******************************************************************************* | |
* @file source.c | |
* @author Nepal Digital Systems Pvt. Ltd. | |
* @version 1.0 | |
* @date May 10, 2025 | |
* @brief It is a sample source file | |
******************************************************************************/ | |
/******************************************************************************* | |
* Include Files | |
*******************************************************************************/ | |
#include "header.h" | |
/******************************************************************************* | |
* Extern Data Declarations | |
*******************************************************************************/ | |
/******************************************************************************* | |
* Static Function Prototypes | |
*******************************************************************************/ | |
static void func_static(type_t arg); | |
/******************************************************************************* | |
* Extern Data Definitions | |
*******************************************************************************/ | |
/******************************************************************************* | |
* Static Data Definitions | |
*******************************************************************************/ | |
/******************************************************************************* | |
* Extern Function Definitions | |
*******************************************************************************/ | |
/** | |
* @brief Global/extern function template example | |
* Convention : Use capital letter for initial word on extern function | |
* @param arg | |
*/ | |
void FUNC_extern(type_t arg) | |
{ | |
// func defination here | |
} | |
/******************************************************************************* | |
* Static Function Definitions | |
*******************************************************************************/ | |
/** | |
* @brief Stattic function template example | |
* Convention : Use small letter for initial word on extern function | |
* @param arg | |
*/ | |
static void func_static(type_t arg) | |
{ | |
} | |
/******************************************************************************* | |
* End of File | |
*******************************************************************************/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment