# fclose

```csharp
[DllImport("msvcrt.dll", CallingConvention = CallingConvention.Cdecl, SetLastError = true)]
public static extern int fclose(
   IntPtr stream
);
```

Microsoft documentation: [Link](https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fclose-fcloseall)
