Linux c Development common structure, framework

Source: Internet
Author: User

Transferred from: http://www.maomao365.com/?p=673

Understanding the framework of other languages
Examples: Java Struts1, Struts2, Hibernate, Mybatis, Ibatis, Spring, and so on, use these frameworks to quickly develop stable applications, and in Java the functions of these frameworks mainly provide some condensed version functionality.
Think carefully:
The general structure of other languages?
Example: MVC common structure
Folder App_Data Content Controllers Models Scripts views
Configuration files Global.asax packages.config Web. config
--------------------------------------------
What are the frameworks for C language?
I think that the system in the C language provides all the library functions that can be called by the outside world, which is understood as an application framework.
Example: Stdio.h is one of the most basic C language IO application frameworks.
C Language general structure?
Common directory structure under Linux
Makefile
|
|–inc
| |–*.h
|
|–src
| |–*.c
|
|–apps
| |–*.c

The purpose of each catalog entry is as follows:
The. h file is stored in the INC directory.
The SRC directory holds. c files without the main function.
The. c file with the main function is stored in the Apps directory.
Makefile compile the source code.

Linux c Development common structure, framework

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.