119 void StringToLower(
char *string1,
char *string2)
121 DEPRECATED(
"StringToLower()",
"blStringToLower()");
125 void StringToUpper(
char *string1,
char *string2)
127 DEPRECATED(
"StringToUpper()",
"blStringToUpper()");
131 char *KillLeadSpaces(
char *
string)
133 DEPRECATED(
"KillLeadSpaces()",
"blKillLeadSpaces()");
137 void KillLine(FILE *fp)
143 void SetExtn(
char *File,
char *Ext)
149 int chindex(
char *
string,
char ch)
155 void Word(
char *string1,
char *string2)
161 void WordN(
char *string1,
char *string2,
int MaxChar)
164 blWordN(string1, string2, MaxChar);
167 void padterm(
char *
string,
int length)
173 void padchar(
char *
string,
int length,
char ch)
179 BOOL CheckExtn(
char *
string,
char *ext)
185 char *ftostr(
char *str,
int maxlen,
REAL x,
int precision)
188 return(
blFtostr(str, maxlen, x, precision));
191 void GetFilestem(
char *filename,
char *stem)
193 DEPRECATED(
"GetFilestem()",
"blGetFilestem()");
197 int upstrcmp(
char *word1,
char *word2)
203 int upstrncmp(
char *word1,
char *word2,
int ncomp)
209 char *GetWord(
char *buffer,
char *word,
int maxsize)
212 return(
blGetWord(buffer, word, maxsize));
215 BOOL OpenStdFiles(
char *infile,
char *outfile, FILE **in, FILE **out)
217 DEPRECATED(
"OpenStdFiles()",
"blOpenStdFiles()");
221 FILE *OpenFile(
char *filename,
char *envvar,
char *mode,
BOOL *noenv)
224 return(
blOpenFile(filename, envvar, mode, noenv));
227 int countchar(
char *
string,
char ch)
233 char *fgetsany(FILE *fp)
239 char *strcatalloc(
char *instr,
char *catstr)
241 DEPRECATED(
"strcatalloc()",
"blStrcatalloc()");
247 DEPRECATED(
"StoreString()",
"blStoreString()");
253 DEPRECATED(
"InStringList()",
"blInStringList()");
259 DEPRECATED(
"FreeStringList()",
"blFreeStringList()");
263 char *QueryStrStr(
char *
string,
char *substring)
265 DEPRECATED(
"QueryStrStr()",
"blQueryStrStr()");
269 void IndexReal(
REAL *arrin,
int *indx,
int n)
275 FILE *OpenOrPipe(
char *filename)
281 int CloseOrPipe(FILE *fp)
283 DEPRECATED(
"CloseOrPipe()",
"blCloseOrPipe()");
287 BOOL WrapString(
char *in,
char *out,
int maxlen)
293 BOOL WrapPrint(FILE *out,
char *
string)
299 void RightJustify(
char *
string)
301 DEPRECATED(
"RightJustify()",
"blRightJustify()");
305 char *GetWordNC(
char *buffer,
char *word,
int maxlen)
311 void getfield(
char *buffer,
int start,
int width,
char *str)
322 INBUFFER *OpenBufferedFile(
char *filename,
int maxstr)
324 DEPRECATED(
"OpenBufferedFile()",
"blOpenBufferedFile()");
328 BOOL ReadBufferedFile(
INBUFFER *bfp,
char *
string,
int length)
330 DEPRECATED(
"ReadBufferedFile()",
"blReadBufferedFile()");
334 BOOL ProbeBufferedFile(
INBUFFER *bfp,
char *
string,
int length)
336 DEPRECATED(
"ProbeBufferedFile()",
"blProbeBufferedFile()");
345 void StoreError(
char *routine,
char *error)
351 void ShowErrors(
void *PrintRoutine(
char *),
BOOL Trace)
368 void CalcExtSD(
REAL val,
int action,
REAL *Sx,
REAL *SxSq,
int *NValues,
372 blCalcExtSD(val, action, Sx, SxSq, NValues, mean, SD);
425 DEPRECATED(
"PointLineDistance()",
"blPointLineDistance()");
432 ULONG factorial(
int n)
438 ULONG factdiv(
int n1,
int n2)
444 ULONG NPerm(
int n,
int r)
450 ULONG NComb(
int n,
int r)
458 DEPRECATED(
"blDistPtVect()",
"blDistPtLine()");
466 void screen(
char *
string)
472 void prompt(
char *
string)
484 void GetKybdString(
char *
string,
int maxlen)
486 DEPRECATED(
"GetKybdString()",
"blGetKybdString()");
502 void WindowMode(
BOOL mode)
508 void WindowInteractive(
BOOL mode)
510 DEPRECATED(
"WindowInteractive()",
"blWindowInteractive()");
528 return(
blAngle(xi, yi, zi, xj, yj, zj, xk, yk, zk));
535 return(
blPhi(xi, yi, zi, xj, yj, zj, xk, yk, zk, xl, yl, zl));
540 DEPRECATED(
"Simpleangle()",
"blSimpleangle()");
554 return(
blTorToCoor(ant1, ant2, ant3, bond, theta, torsion, coords));
563 char **Array2D(
int size,
int dim1,
int dim2)
569 void FreeArray2D(
char **array,
int dim1,
int dim2)
571 DEPRECATED(
"FreeArray2D()",
"blFreeArray2D()");
576 char ***Array3D(
int size,
int dim1,
int dim2,
int dim3)
579 return(
blArray3D(size, dim1, dim2, dim3));
582 void FreeArray3D(
char ***array,
int dim1,
int dim2,
int dim3)
584 DEPRECATED(
"FreeArray3D()",
"blFreeArray3D()");
594 void Help(
char *
string,
char *HelpFile)
600 void DoHelp(
char *
string,
char *HelpFile)
611 BOOL HPGLInit(
char *filename,
char *AltFont,
REAL xmargin,
REAL ymargin)
614 return(
blHPGLInit(filename, AltFont, xmargin, ymargin));
617 void HPGLPen(
int num)
635 void HPGLSetDash(
int style)
637 DEPRECATED(
"HPGLSetDash()",
"blHPGLSetDash()");
641 void HPGLFont(
int font,
REAL size)
647 void HPGLLText(
REAL x,
REAL y,
char *
string)
653 void HPGLCBText(
REAL x,
REAL y,
REAL offset,
char *text)
659 void HPGLROffText(
REAL x,
REAL y,
REAL offset,
char *text)
661 DEPRECATED(
"HPGLROffText()",
"blHPGLROffText()");
665 void HPGLLCText(
REAL x,
REAL y,
char *text)
671 void HPGLCTText(
REAL x,
REAL y,
REAL offset,
char *text)
677 void HPGLVText(
REAL x,
REAL y,
REAL xoff,
char *text,
int TitleFont,
678 REAL TitleSize,
char *label,
int LabelFont,
REAL LabelSize)
681 blHPGLVText(x, y, xoff, text, TitleFont, TitleSize, label, LabelFont,
691 void HPGLShowText(
char *text,
BOOL orientation,
int XBase,
int YBase)
693 DEPRECATED(
"HPGLShowText()",
"blHPGLShowText()");
704 DEPRECATED(
"MatMult3_33()",
"blMatMult3_33()");
708 void MatMult33_33(
REAL a[3][3],
REAL b[3][3],
REAL out[3][3])
710 DEPRECATED(
"MatMult33_33()",
"blMatMult33_33()");
714 void invert33(
REAL s[3][3],
REAL ss[3][3])
720 void CreateRotMat(
char direction,
REAL angle,
REAL matrix[3][3])
722 DEPRECATED(
"CreateRotMat()",
"blCreateRotMat()");
737 int parse(
char *comline,
int nkeys,
KeyWd *keywords,
REAL *REALparam,
741 return(
blParse(comline, nkeys, keywords, REALparam, strparam));
744 int mparse(
char *comline,
int nkeys,
MKeyWd *keywords,
REAL *REALparam,
745 char **strparam,
int *nparams)
748 return(
blMparse(comline, nkeys, keywords, REALparam, strparam,
752 int match(
char *comstring,
char *string2,
int *nletters)
755 return(
blMatch(comstring, string2, nletters));
758 int GetString(
char *command,
char *strparam)
764 int GetParam(
char *command,
REAL *value,
int *nletters)
775 BOOL AMInitPlot(
char *filename,
char *title,
int dest,
REAL OutXSize,
777 char *AltFont,
REAL xmargin,
REAL ymargin,
782 return(
blAMInitPlot(filename, title, dest, OutXSize, OutYSize, OutXOff,
783 OutYOff, AltFont, xmargin, ymargin, DataXMin,
784 DataYMin, DataXMax,DataYMax));
787 void AMSetPen(
int dest,
int pen)
793 void AMMove(
int dest,
REAL x,
REAL y)
799 void AMDraw(
int dest,
REAL x,
REAL y)
805 void AMSetLineStyle(
int dest,
int style)
807 DEPRECATED(
"AMSetLineStyle()",
"blAMSetLineStyle()");
811 void AMEndLine(
int dest)
817 void AMSetFont(
int dest,
char *PSFontName,
REAL FontSize)
823 void AMText(
int dest,
REAL x,
REAL y,
char *text)
829 void AMCBText(
int dest,
REAL x,
REAL y,
char *text)
835 void AMRText(
int dest,
REAL x,
REAL y,
REAL offset,
char *text)
841 void AMLCText(
int dest,
REAL x,
REAL y,
char *text)
847 void AMCTText(
int dest,
REAL x,
REAL y,
REAL CTOffset,
char *text)
853 void AMEndPlot(
int dest)
859 int PS2HPGLFont(
char *font);
860 char *SimplifyText(
char *
string)
862 DEPRECATED(
"SimplifyText()",
"blSimplifyText()");
871 BOOL PSInit(
char *FName,
char *creator,
char *AltFont)
874 return(
blPSInit(FName, creator, AltFont));
877 void PSThick(
REAL thickness)
895 void PSSetDash(
char *linepatt)
901 void PSClearDash(
void)
903 DEPRECATED(
"PSClearDash()",
"blPSClearDash()");
913 void PSFont(
char *fontname,
REAL size)
919 void PSLText(
REAL X,
REAL Y,
char *label)
931 void PSROffText(
REAL X,
REAL Y,
REAL offset,
char *label)
937 void PSLCText(
REAL X,
REAL Y,
char *label)
950 char *label,
char *lfont,
REAL lsize)
953 blPSVText(x, y, xoff, text, font, size, label, lfont, lsize);
956 void PSShowText(
char *text)
968 char *PSCorrectCase(
char *font)
970 DEPRECATED(
"PSCorrectCase()",
"blPSCorrectCase()");
979 void *safemalloc(
int nbytes)
985 BOOL safefree(
void *ptr)
997 int eigen(
REAL **M,
REAL **Vectors,
REAL *lambda,
int n)
1000 return(
blEigen(M, Vectors, lambda, n));
1003 BOOL CalculateBestFitLine(
double **coordinates,
int numberOfPoints,
1004 int numberOfDimensions,
double *centroid,
1005 double *eigenVector)
1008 "blCalculateBestFitLine()");
1010 numberOfDimensions, centroid,
1015 void FindCentroid(
REAL **coordinates,
int numberOfPoints,
1016 int numberOfDimensions,
REAL *centroid)
1018 DEPRECATED(
"FindCentroid()",
"blFindCentroid()");
1020 numberOfDimensions, centroid);
1024 BOOL CalculateCovarianceMatrix(
REAL **x,
int numX,
int numY,
REAL **cov)
1027 "blCalculateCovarianceMatrix()");
BOOL blCalculateCovarianceMatrix(REAL **matrix, int numX, int numY, REAL **cov)
void blAMLCText(int dest, REAL x, REAL y, char *text)
void blScreen(char *string)
void blPSLCText(REAL X, REAL Y, char *label)
BOOL blWrapString(char *in, char *out, int maxlen)
void blHPGLCTText(REAL x, REAL y, REAL offset, char *text)
void blWord(char *string1, char *string2)
Include file for PostScript routine.
void blPSSetDash(char *linepatt)
char * blPSCorrectCase(char *font)
void blStringToUpper(char *string1, char *string2)
char * blGetWordNC(char *buffer, char *word, int maxlen)
void blVecAdd3(VEC3F *Out, VEC3F In1, VEC3F In2)
Header for window/normal interface routines.
Include file for the command parser.
void blKillLine(FILE *fp)
void blPadchar(char *string, int length, char ch)
int blCountchar(char *string, char ch)
Redirect calls to deprecated functions.
void blGetKybdString(char *string, int maxlen)
char ** blArray2D(int size, int dim1, int dim2)
void blPadterm(char *string, int length)
char * blKillLeadSpaces(char *string)
void blMatMult33_33(REAL a[3][3], REAL b[3][3], REAL out[3][3])
int blCloseOrPipe(FILE *fp)
char * blFtostr(char *str, int maxlen, REAL x, int precision)
void blPSThick(REAL thickness)
void blCrossProd3(VEC3F *Out, VEC3F In1, VEC3F In2)
int blParse(char *comline, int nkeys, KeyWd *keywords, REAL *floatparam, char **strparam)
void blPSFont(char *fontname, REAL size)
void blMatMult3_33(VEC3F vecin, REAL matin[3][3], VEC3F *vecout)
char * blSimplifyText(char *string)
REAL blAngle(REAL xi, REAL yi, REAL zi, REAL xj, REAL yj, REAL zj, REAL xk, REAL yk, REAL zk)
void blIndexReal(REAL *arrin, int *indx, int n)
BOOL blTorToCoor(VEC3F ant1, VEC3F ant2, VEC3F ant3, REAL bond, REAL theta, REAL torsion, VEC3F *coords)
void blHPGLShowText(char *text, BOOL orientation, int XBase, int YBase)
BOOL blReadBufferedFile(INBUFFER *bfp, char *string, int length)
void blHPGLCBText(REAL x, REAL y, REAL offset, char *text)
void blFreeStringList(STRINGLIST *StringList)
REAL blDistPtLine(VEC3F Point, VEC3F End1, VEC3F End2)
void blPSLText(REAL X, REAL Y, char *label)
void blAMRText(int dest, REAL x, REAL y, REAL offset, char *text)
void blFindCentroid(REAL **matrix, int numX, int numY, REAL *centroid)
FILE * blOpenOrPipe(char *filename)
INBUFFER * blOpenBufferedFile(char *filename, int maxstr)
BOOL blOpenStdFiles(char *infile, char *outfile, FILE **in, FILE **out)
REAL blPointLineDistance(REAL Px, REAL Py, REAL Pz, REAL P1x, REAL P1y, REAL P1z, REAL P2x, REAL P2y, REAL P2z, REAL *Rx, REAL *Ry, REAL *Rz, REAL *frac)
void blHPGLSetDash(int style)
Include file for 2D/3D array functions.
void blPSVText(REAL x, REAL y, REAL xoff, char *text, char *font, REAL size, char *label, char *lfont, REAL lsize)
void * blSafemalloc(int nbytes)
void blAMSetPen(int dest, int pen)
void blDoHelp(char *string, char *HelpFile)
REAL blPearson(REAL *x, REAL *y, int NItem)
FILE * blOpenFile(char *filename, char *envvar, char *mode, BOOL *noenv)
Include file for using plotting routines.
void blShowErrors(void *PrintRoutine(char *), BOOL Trace)
void blPSCBText(REAL X, REAL Y, REAL Offset, char *label)
char *** blArray3D(int size, int dim1, int dim2, int dim3)
void blSetExtn(char *File, char *Ext)
int blEigen(REAL **matrix, REAL **eigenVectors, REAL *eigenValues, int matrixSize)
void blCalcExtSD(REAL val, int action, REAL *Sx, REAL *SxSq, int *NValues, REAL *mean, REAL *SD)
REAL blPhi(REAL xi, REAL yi, REAL zi, REAL xj, REAL yj, REAL zj, REAL xk, REAL yk, REAL zk, REAL xl, REAL yl, REAL zl)
char * blStrcatalloc(char *instr, char *catstr)
BOOL blAMInitPlot(char *filename, char *title, int dest, REAL OutXSize, REAL OutYSize, REAL OutXOff, REAL OutYOff, char *AltFont, REAL xmargin, REAL ymargin, REAL DataXMin, REAL DataYMin, REAL DataXMax, REAL DataYMax)
void blAMEndPlot(int dest)
REAL blVecDist(REAL *a, REAL *b, int len)
void blPSShowText(char *text)
BOOL blCheckExtn(char *string, char *ext)
void blFreeArray2D(char **array, int dim1, int dim2)
int blGetParam(char *command, REAL *value, int *nletters)
int blMatch(char *comstring, char *string2, int *nletters)
char * blQueryStrStr(char *string, char *substring)
void blAMEndLine(int dest)
void blStoreError(char *routine, char *error)
void blCalcSD(REAL val, int action, REAL *mean, REAL *SD)
Include file for angle functions.
void blHelp(char *string, char *HelpFile)
Include file for matrix operations.
void blVecSub3(VEC3F *Out, VEC3F In1, VEC3F In2)
int blMparse(char *comline, int nkeys, MKeyWd *keywords, REAL *floatparam, char **strparam, int *nparam)
BOOL blWrapPrint(FILE *out, char *string)
Prototypes, etc. for maths utility routines.
void blPrompt(char *string)
void blHPGLROffText(REAL x, REAL y, REAL offset, char *text)
REAL blPearson1(REAL *x, REAL *y, int NItem)
char * blGetWord(char *buffer, char *word, int maxsize)
void blWordN(char *string1, char *string2, int MaxChar)
void blPSROffText(REAL X, REAL Y, REAL offset, char *label)
int blGetString(char *command, char *strparam)
void blHPGLMove(REAL x, REAL y)
int blUpstrcmp(char *word1, char *word2)
void blGetfield(char *buffer, int start, int width, char *str)
void blGetFilestem(char *filename, char *stem)
void blRightJustify(char *string)
void blCreateRotMat(char direction, REAL angle, REAL matrix[3][3])
Include file for help functions.
void blPSDraw(REAL X, REAL Y)
STRINGLIST * blStoreString(STRINGLIST *StringList, char *string)
void blHPGLLText(REAL x, REAL y, char *string)
ULONG blFactdiv(int n1, int n2)
Header file for general purpose routines.
int blChindex(char *string, char ch)
void blAMDraw(int dest, REAL x, REAL y)
void blAMCBText(int dest, REAL x, REAL y, char *text)
void blAMMove(int dest, REAL x, REAL y)
int blUpstrncmp(char *word1, char *word2, int ncomp)
void blPSMove(REAL X, REAL Y)
void blAMSetFont(int dest, char *PSFontName, REAL FontSize)
BOOL blPSInit(char *FName, char *creator, char *AltFont)
BOOL blCalculateBestFitLine(REAL **coordinates, int numberOfPoints, int numberOfDimensions, REAL *centroid, REAL *eigenVector)
void blHPGLVText(REAL x, REAL y, REAL xoff, char *text, int TitleFont, REAL TitleSize, char *label, int LabelFont, REAL LabelSize)
void blHPGLLCText(REAL x, REAL y, char *text)
void blPSCTText(REAL X, REAL Y, REAL Offset, char *label)
void blStringToLower(char *string1, char *string2)
ULONG blNComb(int n, int r)
BOOL blHPGLInit(char *filename, char *AltFont, REAL xmargin, REAL ymargin)
void blWindowInteractive(BOOL mode)
void blInvert33(REAL s[3][3], REAL ss[3][3])
ULONG blNPerm(int n, int r)
void blHPGLDraw(REAL x, REAL y)
BOOL blSafefree(void *ptr)
Header file for BuffInp.c.
void blHPGLFont(int font, REAL size)
BOOL blProbeBufferedFile(INBUFFER *bfp, char *string, int length)
void blAMText(int dest, REAL x, REAL y, char *text)
Safe malloc()/free() routines which check for array overflow on free.
char * blFgetsany(FILE *fp)
void blWindowMode(BOOL mode)
REAL blVecLen3(VEC3F Vec)
REAL blSimpleangle(REAL ang)
BOOL blInStringList(STRINGLIST *StringList, char *string)
void blFreeArray3D(char ***array, int dim1, int dim2, int dim3)
Build and print an error stack for program failure.
void blAMSetLineStyle(int dest, int style)
void blAMCTText(int dest, REAL x, REAL y, REAL CTOffset, char *text)
REAL blTrueAngle(REAL opp, REAL adj)