text/x-csrc
C source code
| Description | C source code |
|---|---|
| File extensions | .c |
| Aliases | text/x-c |
| Based on | text/plain |
| Signature (magic bytes) | 23 69 6E 63 6C 75 64 65 (#include)2F 2A (/*)2F 2F (//) |
Frequently asked questions
What is the MIME type text/x-csrc?
text/x-csrc denotes “C source code”.
Which file extension does text/x-csrc use?
Files of type text/x-csrc usually end in .c.
How does a web server serve text/x-csrc correctly?
With the header Content-Type: text/x-csrc. In nginx: types { text/x-csrc c; }; in Apache: AddType text/x-csrc .c.
Are there other names for text/x-csrc?
Yes, text/x-c are used as equivalents.
Which formats are based on text/x-csrc?
Formats based on it include C++ source code, C header, C# source code and D source code.
Formats based on it
- text/x-c++src – C++ source code
- text/x-chdr – C header
- text/x-csharp – C# source code
- text/x-dsrc – D source code
- text/x-groovy – Groovy source code
- text/x-java – Java source code
- text/x-mof – MOF file
- text/x-objcsrc – Objective-C source code
- text/x-ooc – OOC source code
- text/x-opencl-src – OpenCL source code
- text/x-vala – Vala source code