mdtoi.c

来自「spice中支持多层次元件模型仿真的可单独运行的插件源码」· C语言 代码 · 共 23 行

C
23
字号
/* $Header: /home/harrison/c/tcgmsg/ipcv4.0/RCS/mdtoi.c,v 1.1 91/12/06 17:26:43 harrison Exp Locker: harrison $ */#include "sndrcv.h"/*  These routines use C's knowledge of the sizes of data types  to generate a portable mechanism for FORTRAN to translate  between bytes, integers and doubles. Note that we assume that  FORTRAN integers are the same size as C longs.*/long MDTOI_(n)     long *n;/*  Return the minimum no. of integers which will hold n doubles.*/{  if (*n < 0)    Error("MDTOI_: negative argument",*n);   return (long) ( (MDTOB_(n) + sizeof(long) - 1) / sizeof(long) );}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?